-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
13.2 breaks Query Loop taxonomy filters (on front end) #41067
Comments
I can confirm that category filters do not work front-end in version 13.2 |
Also can confirm this issue. Would love a fix or work-around asap as my site is completely broken without this functionality. |
If you create a new Query Loop filter with --edit I just tried having a Query Loop from 13.1 and then in 13.2, everything seemed to worked fine as well. 🤔 Can you share more info about your setup or more details in general? |
@ntsekouras: The filters work fine in the block editor, but have stopped working on the front-end (where I understand they are using |
@ntsekouras I have a fairly simple, non-custom set-up using the block editor on Twenty Twenty-Two. I have tried creating a new post draft with a standard query and it also fails to do any requested filtering in the preview (like other 3 other published pages I have that use queries), however the editing page shows the expected proper filtering. |
I know, I tested that. @andrewstaffell and @Diachrony do you experience the problem through |
@ntsekouras I'm sorry. I'm not sure about Calypso. Where can I look to find whether it is being used. It is not anything I intentionally installed but may be there by default? edit: it may have been @alliebbush2 that mentioned it above? |
@ntsekouras I'm using Core too. WP 5.9.3. |
Wordpress.org 5.9.3 on server here with Gutenberg installed and updated from Wordpress plugin page |
I mean if your sites are in WordPress.com. If yes they will be using Calypso. @Diachrony your mention was implicit through:
|
@ntsekouras I'm using .org. Bug reproduced locally and in server environment. |
I'm following the instructions above, and I was not able to reproduce either 🤔 There must be another parameter in the equation. |
Thanks for all the info @Diachrony! I could reproduce in |
@youknowriad I completely removed and redid the block with 13.2.1 installed and it now seems to be working OK here. I need to test this out on the production environment where the bug first arose, but in the meantime I wanted to share something I've spotted in the source code of one of the intermediate revisions, which is that both
I think one of these is an older format but it's strange they were both showing up in the same revision? Possible issue with block migration code? |
Yes, that's a possibility, it would be good to have the "old" markup (before the upgrade) that failed to try with. |
Still failing for me in production in 13.2.0 or 13.2.1 (but fine in 13.1). Example markup that's failing:
|
I've been testing this today both locally and on WordPress.com and I'm also not able to reproduce. Clearly there's something going on, but there's some obscure variable preventing some of us from seeing it. Even copypastaing @andrewstaffell's provided markup renders as expected for me! Not sure what's triggering it for some sites/users but not others 🤔 Tested with Chrome 101.0.4951.64. Unable to reproduce on either a WordPress.com site, or locally running WordPress 5.9.3 and Gutenberg 13.0, 13.1, or 13.2.1 |
Post Author Name block is showing empty for me too (on front). Whether in Query Loop or directly in Post Content.
Note my first comment above, that it appears the `pre_get_posts` hook is not being executed by the query loop when it fails. If I restore 13.1 the logging in that hook reappears.
It’s an odd one for sure…
|
Reproduction ReportEnvironment
Steps to Reproduce
Reproduction Results
Screenshots (from TT2)*Note that even-numbered posts have test filter applied.
|
Just confirming here for additional consensus 👍🏻 After testing Test ReportPatch: #41122 Environment
Steps to Test Patch
Test Results✅ Patch addresses reported issue. ScreenshotsGutenberg `trunk` |
The issue should be fixed with Gutenberg 13.2.2. See the details - #41135 (comment). |
@FlorientR thank you! |
@FlorientR thank you. Your answer helped me. |
Description
Between 13.1 and 13.2 the category / tag / taxonomy filters for Query Loop stop having an effect on the front end. I tried to see what was causing it in the diff but can't work it out. However, I added logging to a function hooked to
pre_get_posts
and it is not being called at all in 13.2. Verified in both local and server environments.The issue doesn't affect the editor. Just front end.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Before (13.1)
After (13.2)
Environment info
WP 5.9, Gutenberg 13.2 (but not 13.1)
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: