Use page templates, an overview can be found here: http://codex.wordpress.org/Page_Templates
Edit for those afraid of dying links:
A page template file should be placed in the theme folder, with any name you like. In its header, it should have
<?php
/*
* Template Name: My Custom Page
* Description: A Page Template with a darker design.
*/
// Code to display Page goes here...
In admin menu, each page will have the option to be assigned the template My Custom Page
and this file will be used to show the page’s content. As a starting point, you could copy code from page.php or if that doesn’t exist, index.php
Related Posts:
- Sending the reset password link programatically
- Getting only direct child pages in WordPress with get_pages
- How to add a .php file to WordPress
- Any guides on creating custom admin pages?
- Multiple is_page() in page.php
- How to check if feed URL was requested?
- Is it possible to generate a page without create in the admin?
- How to change “Shipping Calculator “field label on Cart Page – woocommerce? [closed]
- WordPress admin never finishes saving page on site with large page count
- add_rewrite_rule with bottom priority doesn’t handle the WordPress pages
- Listing all sub-pages?
- How to link to a custom .php page in my folder
- Get only the grandchildren, not the direct children of page/current page?
- Help with a custom page template – listing contents of childpages?
- Print number of post (in reverse)
- Passing the page ID to a login php script
- How can the plugin directory path be returned into ?
- syntax issue on php 7.4
- Custom category code not showing all posts
- Can’t get page content in WordPress
- Way to querry data (tags) from a wordpress database?
- Global variable $post returning incorrect object
- How can I load a PHP page without using a Template?
- Best practice for migration friendly images in posts/pages?
- Page Automatically Generated from Theme?
- How to add a php custom page to WordPress
- How to hide all child pages with post_query?
- My page.php shows the index.php
- Populate editor with some content of a page with a page template
- How can I add an area/option for a custom page description?
- Create Page To Count Comments For Each Post In WordPress Site
- get_the_title() gets printed out twice
- How do I find PHP file that contains content of my page?
- WordPress page content outside WordPress
- Using the_excerpt() on a page
- Inject class in body when particular page template is used
- Use .php file as page instead of wordpress page & template file?
- Use WordPress function in php file
- Why am I getting a different filename? And how does WordPress load singular.php for both Page & Post? (Fresh WordPress installation)
- How to check if the current page is at a specified path in the URL?
- Show About and Contact Us page when they’re clicked in the top menu.
- Parsing Menu Items and Blog Posts
- How to use theme function in post/page?
- My php code is not being executed
- Apply class to every third list item? [duplicate]
- How to include custom code on a page that’s set to act as homepage?
- Can a page contain php code?
- page-slug.php not working but only for specific slug
- Need php code’s output to display underneath a Divi Module
- Insert page content into another page with a changed variable
- How to echo every parent page title?
- How Do I Find & Remove H1 From Site-Title-Wrapper? [closed]
- Retrieve Json data and create multiple pages with it
- How to add page numbering with php?
- Display child page content of a specific parent on home page
- Noindex subscriber author page
- Removing custom sort order from admin page listing
- PHP Output also in Child theme, but different
- $wpdb->get_results breaking page?
- Unique PHP on each Page
- How to Display a List of Child Pages For a Parent Page in WordPress
- If is page, archive or search output this code
- WordPress Search
- List all anchor links on a page
- How do I add my PHP app to a WordPress page whilst keeping semantic URLs?
- Page load timer?
- Page not visible in ‘All pages’ after being added through PHP
- Cascading dropdown select search based on Parent Page & Child Page
- Edit and delete permissions pages and posts
- My worpress search page is showing no results
- When I click for the redirect link it is showing the content of index.php instead of single_assignment_page.php
- Split post or page content in two or more columns
- Display page content in different sections – based on page break block?
- Static Page with php echo [duplicate]
- loading a php file to a specific page id
- Getting page / post URL on publish and / or update
- Get current_post in reverse order with pagination
- How to associate dynamic PHP page for chosen WordPress tag?
- Create a custom theme-specific page, invisible in the admin-panel?
- Replace content in WordPress Page after GET from php page
- List of child pages fetch next results at link click
- Why isn’t my link attribute getting my css?
- How to use PHP code with wordpress page
- Show results for multiple page-types
- How to add feature image url in my template file and content as well?
- Display selected parts from selected pages on the frontpage?
- Adding Media button to only pages
- Trying to put a search page on site
- I want Page titles and excerpts to show up on home.php in certain order
- ACF: Echo page title when checkbox is checked
- Create a custom page URL
- How to refresh a template page on WordPress in 3 seconds – easiest method?
- Hide page title
- I can’t seem to get excerpts showing inside get_pages and don’t know why?
- Forbid certain users to access a specific page
- How to return a Boolean for a page that is a subpage thru its name?
- How to handle parent and child pages?
- How do I remove blog entries from home page Twenty Eleven child theme?
- Create an if statement based on page_id
- hello can you advise how to fix the error?