Query Block works in WP6.1.1 but not WP6.2 with my custom theme
-
I am trying to understand why the Query Block has stopped working with a custom theme in WP6.2.
I have a fairly basic custom theme I keep up-to-date and replicate to develop with. The Query Block works with this theme in WP6.1.1 but any page with a Query Block in it in WP6.2 returns no posts. There are no php errors, wordpress errors, and any blocks preceeding the Query Block are not returned either. This is true when inheriting the query, or when setting the query. There are no plugins installed. The Query Block works with the default theme in WP6.2. My default theme is not a block theme. I don’t think Twenty Twenty-One is either. The Query Block works with Twenty Twenty-One.
I’ve reviewed my functions.php file for anything that re-writes queries.
I am at a loss for what to consider next. I can’t understand why there are no posts found rather than an error. I can’t think where my theme impacts the query return (other than in functions.php).Any suggestions on where to focus would be gratefully received.
Regards
Mike
- The topic ‘Query Block works in WP6.1.1 but not WP6.2 with my custom theme’ is closed to new replies.