Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

How to Create a Custom Page of Custom Theme in WordPress? Part-6

How to Create a Custom Page of Custom Theme in WordPress?

Why to use Custom Page?

Customized page templates allow you to individualize any part of your WordPress site without affecting the rest of it. WordPress uses page.php to provide the content of all pages on your website.

By default, when we create dynamic or static pages in WordPress; thereafter it will search page.php file to open that pages.

Now, let’s see what will be the first step to create a custom page of the custom theme.

  1. Create a file named of page.php in customtheme folder.

2. As we know that get_header(); and get_footer(); methods are used to include its file to that file which we are using. i.e., page.php file. if(have_posts()):while(have_posts()): the_post(); The loop is PHP code use by WordPress to display posts. The the_title(); and the_content(); are methods for accessing the page of its title and content.

3. Whenever we create the pages’ title and its content through administer panel of WordPress, it saves in our created database. If you forget its database name, just open with C:\xampp\htdocs\wordpress\wp_config.php file notepad.

4. Just click your database->wp_posts

5. Click the left side of the panel of pages->add a new page and write your custom page title and content.

6. Click the Custom Theme which is active ->customize->open HomePage Setting-> check a static page -> choose your custom page from homepage dropdown.

7. By using the the_permalink(); method: Automatically link that custom page.

Permalinks are the permanent URLs to your individual weblog pages, posts, as well as categories and other lists of weblog postings. 

Thanks.

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
With MotoShare.in, you can book a bike instantly, enjoy doorstep delivery, and ride without worries. Perfect for travelers, professionals, and adventure enthusiasts looking for a seamless mobility solution.

Related Posts

What is CodeIgniter and use cases of CodeIgniter?

What is CodeIgniter? CodeIgniter is an open-source PHP web application framework designed to simplify and accelerate web development. It follows the Model-View-Controller (MVC) architectural pattern and provides…

Read More

What is PHP and use cases of PHP?

What is PHP? Are you wondering what PHP is and how it works? Look no further! In this article, we will explore the ins and outs of…

Read More

Complete guide on PHP certification courses, tutorials & training

What is PHP Hypertext Preprocessor is known as PHP. Many developers use PHP, an open-source server-side programming language, to create websites. In addition, it is a general-purpose…

Read More

Complete PHP with Laravel Certification Guide & tutorials

What is PHP with Laravel? PHP was visioned eventually in the fall of 1994 by Rasmus Lerdorf. PHP means Hypertext Preprocessor. It’s a extensively- used, open source…

Read More

Top 50 PHP Interview Questions and Answers

1) What is PHP? PHP is an open-source, interpreted, and object-oriented scripting language that can be executed at the server-side. PHP is well suited for web development….

Read More

Complete guide of PHP certification courses, tutorials & training

PHP is a great beginner programming language for anyone who is wanting to cross over into the coding world. Though easy to learn, it is an extremely…

Read More