-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Template hierarchy test cases #39
Comments
Repeating the tests in the above tables for Gutenberg 9.3.0 and 9.4.0 attempting to get each template clearly identifying itself with
Notes:
|
I've been looking at the logic for template and template part synchronization.
I thought the problem was in |
It seems to be pretty inefficient. It has to check the file time of each template and template part in the theme on every single load. In a development environment where the This is child / user theme territory that may have been thought out but not clearly documented. I now believe the reason I'm not seeing changes to some of the files is because I have published This is the use case for not updating published templates / template parts. Say the user creates their own template part called Christmas one year. The next year the theme developer decides to deliver a new template part, also called Christmas. Shouldn't the user be told that the template part is going to be overridden by the new one in the theme? |
It looks likes the problem is with the following query from
In my environment it returns two posts for 'front-page'. WorkaroundDelete posts with post_status See also Gutenberg PR 27016 where the queries have been changed to use a theme taxonomy called |
Hooray. I also had to delete the two entries from the |
Repeating the tests once the templates have been reloaded as 'auto-draft' posts.
So now we have to look at the logic that loads the template hierarchy. |
I raised an issue against Gutenberg. WordPress/gutenberg#27177 |
I'm going to close this issue now. Things have moved on. Current version of Gutenberg is 15.3.1, WordPress 6.2-RC1 |
When I first started developing Fizzie I created a
front-page.html
template.I found that this was being used even when the Your homepage displays radio button was set to Latest posts
See #1 (comment)
This was very early days, before the
core/query
block did anything like I expected it to.Now, with Gutenberg 9.4.0 I'm seeing the wrong templates being used to display my content.
I need to document what I expect for particular URLs and to confirm the results with Gutenberg 9.3.0 and 9.4.0.
Refer to https://developer.wordpress.org/files/2014/10/Screenshot-2019-01-23-00.20.04.png
These results were determined for my non-FSE themes
genesis-hm
andgenesis-a2z
The template files are .php files.
page-* represents multiple levels of specificity: page-slug, page-ID, page
The text was updated successfully, but these errors were encountered: