Skip to content
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

"Query Type" missing from Query Loop block; can no longer use it to inherit current query? #67252

Open
3 of 6 tasks
cheestudio opened this issue Nov 23, 2024 · 2 comments
Open
3 of 6 tasks
Labels
[Type] Bug An existing feature does not function as intended

Comments

@cheestudio
Copy link

Description

I went to create a Template Part for Search Results and I noticed I was not able to allow the Query Loop block to inherit the current query. I then went to multiple sites running 6.7.1 and found the same result.

I disabled all plugins and used TwentyTwentyThree to rule out any plugins or theme conflicts. This setting is 100% missing.

Step-by-step reproduction instructions

  1. Add a Query Loop
  2. Notice the setting is missing

Screenshots, screen recording, code snippet

Image

Image

Environment info

No response

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure
@cheestudio cheestudio added the [Type] Bug An existing feature does not function as intended label Nov 23, 2024
@cheestudio
Copy link
Author

cheestudio commented Nov 23, 2024

Follow up: I now see that the "default behavior" is to have the query loop inherit by default:

https://make.wordpress.org/core/2024/09/23/core-editor-improvement-simplified-query-loop-block-with-smarter-defaults-intuitive-settings/

The documentation has not been updated, which is very confusing:

https://wordpress.org/documentation/article/query-loop-block/#inherit-query-from-template

Anyway, this would be fine, except it doesn't actually work; I'm adding it to a Template Part and it's wanting to just query a post type and it's not reacting to user searches.

@jeflopodev
Copy link

This one is also about Query Loop & Template parts: #38684

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

2 participants