How can I to create a custom page in Wordpress 3.0. Give me any link of tutorial.
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
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.
This is a very simple part of WordPress theme development, I suggest giving the documentation (the WordPress Codex) a good read before going any further. There are also a tonne of great WordPress tutorial sites out there that will get you heading in the right direction.
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:
more details read this
http://www.expand2web.com/blog/custom-page-template-wordpress/
Publish on right side of the window(no content is needed for the custom page).
check aboutus page. Then it will be shown on right side window.
That's it, done!
Here are some plugins you can use while creating what you need then you can turn them off or remove them.
http://wordpress.org/extend/plugins/theme-file-duplicator/
http://wordpress.org/extend/plugins/theme-file-maker/
Very easy way to do what you need.