Make special pages of WordPress theme?
source link: https://www.codesd.com/item/make-special-pages-of-wordpress-theme.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Make special pages of WordPress theme?
I'm trying to figure out how a certain WordPress sets things up. I'd like to have a special page where I could make WP calls and interact with the theme, without affecting anything else.
I just making test.php and putting it into my theme's folder, but that doesn't work.
@Eliran provides one possible option, but you could also add a page in the back-end of WP, just make sure it has the slug 'test', and change your 'test.php' filename to 'page-test.php'. If you're worried about the public seeing this, set the page visibility in the admin to 'private'.
Edit:
to move your understanding along a little further also, you should review the way that WordPress determines what file to grab to render a particular URL. This can be pretty confusing to start with, so be patient if you're not familiar with it, but it's at the heart of designing WP themes. I'll link to the examples, and if you scroll down a little there's a diagram that, along with the text, will help you see how WP is 'thinking'. http://codex.wordpress.org/Template_Hierarchy#Examples
Related Articles
Determine layouts per page for Wordpress themes
Make a page in wordpress that does not affect other pages
How to save Css from the html page in the wordpress theme
Rapid development of the Wordpress theme
Include the wordpress theme in a customized php page
Removing the wordpress theme from particular pages
Wordpress Theme Pages
Delete page title from Nav menu - Twenty Ten Wordpress Theme
Is there a framework for a one-page wordpress theme?
Problem with customizing the Wordpress theme with the services configuration under the Business page
The Wordpress theme forces the footer at the bottom of the page for short content pages
Adding a pagination is a custom archive page on WordPress (Thesis Theme)
Change WordPress Theme font & ldquo; Zerif Lite & rdquo;
Protect the wordpress theme with validation of the license key
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK