In my personal experience, WP template hierarchy has worked without problems – so no major bug here. However, it may still be, that your page-$id.php
is not used. This is usually the case, when the link could be multiple things. Archives for example have priority over regular pages.
Best is to check the CSS classes on <body>
of that page, and you’ll see what kind of internal page was loaded.
Related Posts:
- Store Page Template Files in a Subfolder
- Creating page & post templates without template file
- The best way to create pages like an ‘about’, ‘contact’ and etc [closed]
- Loading custom page template on a one page website
- Utilizing the template hierarchy while storing page templates in a subdirectory
- I’m building a WordPress theme and noticed that the 404 page template runs along with the corresponding templates for each page. Any idea why?
- What does is_page_template() compare against?
- Creating custom blog page template the right way
- Create “File-less” Page Template in Functions.php
- How to remove all styles for certain page template?
- Simplest way to add a second html editor to the post/page admin?
- How to consolidate multiple static page templates into one dynamic one?
- Loading page content into a variable in template
- Capturing arbitrary semantic URL arguments
- How do I display the text inside the WP editor for a page with a custom template?
- page_template toggle between 2 templates + 2 permalinks for same post
- index.php template is used instead of blog page
- How to remove a parent theme template from Quick Edit?
- How to Set a Custom Template for Blog Posts
- Removing or Restricting Access to Page Templates for Editor Role
- Can I create a page template, use it once, then hide/remove the option to use it again?
- Custom template for each page
- How can I have a static title on my blog page?
- How to apply a custom template for posts by default?
- Can you call a template file without assigning template to a page in the admin panel?
- page-slug goes to not found
- How do I add a body class to specific pages?
- How to list all titles of posts on a specific page?
- How to create a page template that retrieves content from db?
- Change path of the page’s template
- Get page id of current page from template [duplicate]
- is_page_template returning false
- get_pages — parent vs child_of?
- For custom templates, is it better to use `template_include` or `type_template`?
- Is there any way to get all the name or slug of template parts used in a page?
- Excerpts for Pages
- WP-CLI not setting page template with page_template=”template-name.php”
- Create a page template with No Footer
- Is there a way to set different post templates for parent posts and child posts in the same post type?
- Register/Get sidebar?
- Verify if the current page has at least one published child
- All top-level pages are using index.php as template
- Custom Post Type Archive template page not found
- How to rewrite title- and meta-description templates for page templates in Yoast Plugin [closed]
- Adding a Menu Page to The Dashboard
- Cleaner way to define multiple variables for is_page_template()
- page shows 404 on form submit
- Add #sidebar-2 to a custom page template
- Is it possible to add a child post into the parent page?
- wp_redirect goes to infinity loop
- Is it okay to use page template as contact page? [closed]
- Display one post in different formats conditionally
- Custom Page Templates
- How to build a PDF repository in WordPress
- Why is a renamed custom template file still showing up in the template dropdown menu?
- Page template added via plugin not saved in Gutenberg
- inserting content of 1 Post to in another with a template hierarchy
- Change text size and color for tags and category meta description on product page
- Strip from the_tags() output
- add_rewrite_rule no longer working – possible https issue?
- Delete post: 2 wp_redirect if pages are different
- Template Redirect to /2015 to use page template
- Image not showing on page template in Twenty Fifteen-theme
- Custom page template to sidebar/widget
- How to set custom cookies in WordPress after a form is filled on a page
- Three step order form, how to go to next step
- WordPress custom login and register page problem?
- Using conditional statements in place of custom Page templates
- RSS feed for a custom page template
- WordPress custom pages in a folder
- Add featured image as post header background image
- Blog template with different header to rest of site
- How can I make custom page templates work on child theme?
- WordPress pass url to page template when page does not exist
- page_template filter without a plugin
- How to get template link?
- Custom Homepage As Single Page or Custom Post Type?
- Passing query variables to a custom page template
- WordPress fetches the archive page instead of my custom template
- How to set title from page-template?
- create template for one page
- How do you create a default template?
- Cannot display default template after switching to custom
- A simple form submission but notice : Trying to get property of non-object
- Custom Page Template not working when site moved from subfolder
- change the Theme dynamically
- WordPress & External Page: 404 error in IE and some others
- How can I set full width page layout in a default post page?
- Lead Generation with Cookies in WordPress
- Show tarifs page with menu a or b depending on menu of origin
- Page (template) with only news of the type “gallery”
- How can I make different page templates for one category?
- Getting a custom area in a theme for dynamic content for page
- wordpress header leaks into body in a specific template
- Display child page on parent
- Article Template
- Show page name in browser
- Front end user registration form [closed]
- Create Page with Template File from Plugin Folder
- Extra HTML code added to my (on Chrome DevTools) but not on source code