It’s the nature of the WordPress template hierarchy – point being, if you don’t have a page.php
, it will use singular.php
, same if you don’t have single.php
, it will fallback to a template lower in the hierarchy.
Ideal for themes that have the same layout for posts/pages, instead of having duplicate code in each respective template.
Related Posts:
- Template for specific post of custom post type
- redirect automatic page that serves custom posttype content
- Associate page w/ specific single post template?
- Custom Post Type Specific Post Template
- WordPress giving me the index
- Custom Homepage As Single Page or Custom Post Type?
- CPT Template Not Showing – Getting 404
- Loading custom page template via plugin
- WordPress keeps fetching the archive page instead of the template page
- Pre get posts for single post
- Pull Two Posts Into Custom Post Type `single-cpt.php`
- How to add custom template in plugin?
- is_singular() not working if called via callback function of admin-ajax.php
- How to use a dedicated template for the Custom Post Type from a plugin?
- How to sort list of custom posts to get view like a tree of posts under categories and their children’s categories?
- Custom post type archive and single.php files not working
- WordPress custom post type Single.php?
- Disable single pages and archives and keep preview
- Single page template for custom post_type
- Displaying Meta Box Image
- Custom Post Types, Page Templates and Pagination. Why do I get a 404 Error?
- Trying to manage templates on a blog with lots of custom taxonomies
- 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
- Disable single view in register_post_type [duplicate]
- Custom post type and taxonomy permalinks – Structure
- Redirect Single Post CPT (Custom Post Type) to a specific URL
- Need post_type_archive_title function but in ‘single’
- Can I make WordPress use a custom template for a child page
- Made Custom Post Types, but single.php not working
- How to call custom single post?
- Create Template for Custom Post Type same like for Page
- How to load a template without it being assigned to a page/post?
- Hook to override title, image and content
- Custom template with CPT doesn’t display on frontend
- Remove single page for custom post type
- How do I display tags for a custom post type single page?
- 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
- Single template showing all posts of that type
- Adding sidebar to template creates horizontal gap the size of the side bar
- How to display single post from custom post type loop?
- Custom Post Type Template Alternative
- General advice on addressing content-centric pages
- next_/previous_post_link() `in_same_category` appears to fail when true
- Multiple templates for single custom post type
- WordPress Custom Search by post_type
- Not Able To Render Single-CustomPostType.php File
- Pages Become “Archive” Instead of Using Page Template
- Custom post type pages return 404 page?
- Cant get paginations on single.php to work with my custom post types
- Including all post id’s of a custom post type into an array
- Multiple single templates?
- Custom URL redirect in WP
- List of users that clicked a ‘Join’ button at single post
- Include php on a specific page template
- page template for custom post type
- Inserting custom fields into single.php
- How to integrate single and archive templates for custom post type in any WordPress theme
- wp_get_canonical_url showing first url of the post for custom page
- How to show custom field on specific custom post type posts only when filled
- How can I modify a custom post type and custom page template for a child theme if all content seams to be handled by theme’s ‘native’ plugin?
- Mixing Custom Post Types and Page Templates in WordPress 3.7.1
- Custom post types templates
- Custom Post Type page template doesn’t show up
- Function to allow single post template based on custom taxonomy?
- Problem with custom loop navigation inside the blog page
- Can I automatically assign a page template to a custom post type (i.e page-slug.php file)
- Virtual page and loading template
- Custom Post type dont use custom page template (slug is not right)
- How to create additional rendering for custom post types?
- How can I write slugs / permalinks as: custom post type -> custom taxonomy and custom post type -> custom taxonomy (one CPT and many taxo)?
- Set a template on a custom post in the plugin
- How can I use a custom template to load custom post type posts based on a post_meta value
- Question on templates
- Assign for all post of a post type a specific single-post template
- taxonomy – templates are not loading
- How can I load Template file from wordpress plugin
- Templates for CPT not working
- Making permalink for custom post type/custom taxonomy. Stuck with 404 in the single post
- Edit single page from plugin
- WordPress custom post type and page
- Ordering Posts List By Taxonomy Terms?
- Loading a template for a URL pattern
- How to Fix Custom WordPress Loop with Pagination on Single Post View?
- Custom Post Type & Page Template
- Two single.php files?
- URL Rewrite Adjustment for Custom Post Type causes template to revert to index.php
- CPT Template Not Showing – Getting 404
- Using custom post types within a section of a template
- How do I paginate a custom post type listing on a custom template page?
- Custom Post Type order Title ASC
- get tags from custom post type
- Custom Post Type Template Based on Page Slug?
- using a template for more then 1 page
- 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