How to create a custom page in Wordpress? [closed] How to create a custom page in Wordpress? [closed] wordpress wordpress

How to create a custom page in Wordpress? [closed]


WordPress provides a clever way to do this called Custom Page Templates. To create a WordPress Page Template, you’ll need to use your text editor. Go to the directory on your server where you installed WordPress, and then navigate to the directory of your theme. Usually that looks something like this: “/wp-content/themes/default” where “default” is your theme name.

That’s where you will create your custom page template file. Create a file called “cover_page.php” and add the following code to it:

 <?php /* Template Name: Cover Page */ ?> <?php get_header(); ?> Here's my cover page!<?php get_footer(); ?>  

more details read this

http://www.expand2web.com/blog/custom-page-template-wordpress/


To add to the answers above, one good way is to open a text editor (I like notepad++) and copy and paste the content of the page.php file into a new file, including the php template name code in one of the previous examples.

Call it something unique (like custom_page1.php ) and upload this file via ftp to your active theme folder inside your wordpress install on your server. You can use filezilla for this or another FTP program.

Refresh your editor page in wordpress and you should see your template listed with the others on the right.

Now when you publish a page you can choose this template from the dropdown menu on the side panel.


You can use the Page Template feature of wordpress to create a custom page.