You created a specific page template for a page called ‘about’ but your page is called ‘About Us’. Try creating a page named ‘About’ or renaming your file to page-about-us.php.
Also use the cleaner formatting involving new lines:
<?php
/*
Template Name: Example Page
*/
get_header();
?>
You’re also not checking if there is a post and executing the loop regardless
if( have_posts()){
// put the while loop here
}
I have no idea why you have involved custom post types for this. You’re working with a page template, and you assign page templates to pages. Those custom post type definitions may even be interfering with the working of your pages if they have the same post type name as your pages slug.
Related Posts:
- What is singular.php?
- Page Template as Custom Post Type Archive
- Setting a custom sub-path for blog without using pages?
- Add Content to Page without shortcodes
- Post formats “audio” and “video” only showing in index.php
- Add a Template to a custom post type
- How do I Make a custom post type get a custom post template in a plugin
- Assign Page Template Within A Custom Post Type
- Dynamic page.php template for custom post types
- Custom post type archive and single.php files not working
- Page Templates – this code only works for one Custom Post Type
- Custom Post Type – Archive page title
- WordPress custom post type Single.php?
- Multiple templates for custom post type
- How do I create a custom post type for a training CMS in WordPress?
- How do I create a page template to display a custom post type?
- How to make an archive page displaying posts in a date range
- Custom Post Type slug same as page name causing a conflict
- Control Custom Post Type template from a plugin
- Detect if 1st, 2nd or 3rd level custom page?
- Create second custom 404 page for selected post type
- Child page in custom post throws 404 page not found
- CPT: archive-cpt.php VS custom page template
- Hyphens instead of Underscores in Post-type Archive Template Filenames when Post-type handle contains underscore
- Help with CPT template pagination
- After updating a page, all pages on the site used the index.php template
- Page Templates Drop Down Select for Custom Post Types
- Pull in custom content types into page template
- Editable content on a Custom Archive page
- Using custom page templates with plugin [duplicate]
- Can I make WordPress use a custom template for a child page
- Troubles with making a custom template for posts
- Create Template for Custom Post Type same like for Page
- How to load a template without it being assigned to a page/post?
- Change archive page template using pre_get_post
- Custom template with CPT doesn’t display on frontend
- create a template page for a post
- Custom post type archive page template
- Custom Post Type with Templates using Meta Boxes?
- Posts are duplicating on wp_post_update
- Custom page sidebar using Template dropdown box
- WordPress showing archive.php instead page
- How to render a custom post type template with custom fields using shortcode
- Adding the_content() in custom template email
- next_/previous_post_link() `in_same_category` appears to fail when true
- WordPress Custom Search by post_type
- Custom post type pages return 404 page?
- Include php on a specific page template
- Page Template Dropdown For Custom Post Types
- providing access to post_id or post inside functions.php
- wp_get_canonical_url showing first url of the post for custom page
- Dynamic assign a custom template to custom post type posts
- How to get the current category with custom posts
- How to add page under a custom post type?
- Enabling permalinks disables custom page template
- Custom Post Type Specific Post Template
- Mixing Custom Post Types and Page Templates in WordPress 3.7.1
- Custom Post Type Template Insert not working properply
- Loop and add Specific Categories and Products Images
- custom post template ignored after altering permalinks
- Custom Post Type page template doesn’t show up
- How can I allow users to edit text that will be displayed on a custom post type archive page?
- Using get_terms() to list terms from one custom taxonomy AND from one specific built-in category
- Display ONE taxonomy and its assigned pages
- Display custom post type from template
- How To Display Posts Of Custom Post Type At Page Template
- Modify Custom Post Type Slug
- WordPress Page hierarchy ( parent is singular of custom post types slug ) is returning not found
- How can I create a button that when clicked populates a div with a list of foods that are checked as a certain type of ACF?
- Custom post type not pulling CSS
- How can I use a custom template to load custom post type posts based on a post_meta value
- Showing Custom Post Type with his templates on a custom page template
- Displaying posts inside table having issues
- How to display a custom post as a page (but unedited)?
- Show index and not the archive for “Dog Custom Post” with default slug
- Ordering Posts List By Taxonomy Terms?
- Loading a template for a URL pattern
- Can not hook into custom post type template with: is_page() conditional?
- custom fields not showing before get_header
- Custom Homepage As Single Page or Custom Post Type?
- Page Template For Custom Post Type doesn’t work on URL containing CPT name, other URL’s work
- Custom Post Type Pagination Not Working or Single Posts Displaying?
- Templates list in “Page Attributes” metabox is inaccurate
- Custom Post Type & Page Template
- Query custom post type and showing its content
- Modifying and Displaying URL’s in a Post Template using parse_url
- Display Custom Taxonomy of custom post type
- Custom page template not recognized with permalinks on
- Multiple search template with separate stylesheets
- Using custom post types within a section of a template
- Custom Post Type order Title ASC
- get tags from custom post type
- Dynamically change Custom Post Type Template OR Change Permalink?
- Page templates for custom post types
- using a template for more then 1 page
- Adding custom theme template to custom post type [duplicate]
- Can you programme the selected page template to display block patterns automatically?
- display related posts based on the PAGE TITLE
- I want to show a list of posts under specified categories
- I want to show a list of post with title that have link goes to that post and icon under the specific category to which it belongs