Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How will you create a template page in wordpress?

Answer Posted / Anuradha Verma

To create a new template page in WordPress, follow these steps:

1. Log in to your WordPress dashboard.
2. Navigate to Appearance > Theme Editor or use an FTP client like FileZilla to access your theme's files on the server.
3. Locate the `page.php` file under the `theme-folder/templates` directory (if it doesn't exist, create a new file with that name).
4. Modify the contents of the page.php file to suit your desired template structure, such as:
```
<?php
get_header();
if ( have_posts() ) :
while ( have_posts() ) : the_post();
get_template_part( 'content', get_post_format() );
endwhile;
endif;
get_sidebar();
get_footer();
?>
```
5. Save and update the page.php file.
6. Test your new template by creating a new page from the dashboard (Pages > Add New) and selecting "Template" in the Visibility settings. Choose the name of your custom page template from the dropdown menu.
7. Publish the page to see if your new template is working correctly.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How much is the wordpress business plan?

155


Do you know what is the current version of wordpress?

187


Tell me how do I redirect users back to my blog's main page after they login?

198