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?
- What are the differences between custom post type and custom page templates?
- Page Template as Custom Post Type Archive
- Setting a custom sub-path for blog without using pages?
- Add Content to Page without shortcodes
- Loading custom page template via plugin
- Post formats “audio” and “video” only showing in index.php
- Ordering Posts List By Taxonomy Terms?
- Creating a Custom Post Type for Inserting Preset Content into Post & Pages?
- WordPress keeps fetching the archive page instead of the template page
- How to add custom template in plugin?
- How to quickly switch custom post type singular template?
- Add a Template to a custom post type
- How to use a dedicated template for the Custom Post Type from a plugin?
- WordPress calls archive page instead of Custom Page Template
- How do I Make a custom post type get a custom post template in a plugin
- How to sort list of custom posts to get view like a tree of posts under categories and their children’s categories?
- 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
- Pagination on a custom page template
- 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?
- Custom Post Types, Page Templates and Pagination. Why do I get a 404 Error?
- 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
- Display Posts of a Category in Alphabetical Order (Custom Post Type)
- 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
- is_page_template not working as expected
- Child page in custom post throws 404 page not found
- CPT: archive-cpt.php VS custom page template
- Multiple portfolios with one custom post type?
- Take Variables Set in Functions.php and Echo Them Inside My Custom Post Template
- Hyphens instead of Underscores in Post-type Archive Template Filenames when Post-type handle contains underscore
- Including Custom Post Type posts in a page template contextually (or should I widget?)
- Help with CPT template pagination
- Custom Blog Post Listing in Genesis Sample Child Theme
- 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
- Creating a Page to View the List of Posts for a Custom Post Type?
- 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
- Custom Page that comes with preloaded content for the user
- 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-Posttype & Custom Taxonomy WP_Query
- Page template with different page and post content
- Custom page sidebar using Template dropdown box
- redirect automatic page that serves custom posttype content
- Adding sidebar to template creates horizontal gap the size of the side bar
- WordPress showing archive.php instead page
- How to render a custom post type template with custom fields using shortcode
- Show Custom Post Type meta boxes only on Page Edit
- Adding the_content() in custom template email
- Creating a Page Template to display all items from a Custom Post Type
- Filter widget outputs
- Why does my content disapear when I make a page to match an archive name?
- Custom Post Type Template Alternative
- General advice on addressing content-centric pages
- Fields for different parts of a page
- next_/previous_post_link() `in_same_category` appears to fail when true
- Multiple templates for single custom post type
- How do you create a custom template to display a category with an image and related posts below?
- WordPress Custom Search by post_type
- Pages Become “Archive” Instead of Using Page Template
- How can I set the page template of a new custom post type post?
- Custom post type pages return 404 page?
- Multiple single templates?
- Custom URL redirect in WP
- WordPress Picks Up Wrong Template for Custom Post Type Archive Page
- Associate page w/ specific single post template?
- Include php on a specific page template
- get comments by current user inside page template
- page template for custom post type
- Page Template Dropdown For Custom Post Types
- How to integrate single and archive templates for custom post type in any WordPress theme
- 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
- Multiple search forms and respective results page templates?
- How to create download page with countdown in wordpress?