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

Same queryId for all Query Loops #56902

Closed
scrobbleme opened this issue Dec 8, 2023 · 5 comments · May be fixed by #58804
Closed

Same queryId for all Query Loops #56902

scrobbleme opened this issue Dec 8, 2023 · 5 comments · May be fixed by #58804
Labels
[Block] Query Loop Affects the Query Loop Block [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Bug An existing feature does not function as intended

Comments

@scrobbleme
Copy link

scrobbleme commented Dec 8, 2023

Description

We are migrating a site with multiple CPT to a Gutenberg-based theme and are using multiple Query Loops within single template.

Unfortunately, all loops have the same queryId attribute. This i.e. happens when duplicating the Loop-Block

Problems with this:

  • Paging is not working, as every loop is paged
  • (scrolling directly to the loop is not working, as all share the same id)

Personally, I would prefer to enable the ID field on the block and allow any Id, as there is no need to just allow a numeric one.

Step-by-step reproduction instructions

  1. Create a single template with a query loop block
  2. Duplicate the query loop block
  3. → you can see in the HTML, that both have the same ID.

Screenshots, screen recording, code snippet

image

Environment info

  • Latest WordPress
  • Latest Gutenberg-Plugin

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

@scrobbleme scrobbleme added the [Type] Bug An existing feature does not function as intended label Dec 8, 2023
@jordesign jordesign added Needs Testing Needs further testing to be confirmed. [Block] Query Loop Affects the Query Loop Block labels Dec 10, 2023
Copy link

Hi,
This issue has gone 30 days without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest versions, you can help the project by responding to confirm the problem and by providing any updated reproduction steps.
Thanks for helping out.

@github-actions github-actions bot added the [Status] Stale Gives the original author opportunity to update before closing. Can be reopened as needed. label Jan 12, 2024
@scrobbleme
Copy link
Author

Hi, This issue has gone 30 days without any activity. This means it is time for a check-in to make sure it is still relevant. If you are still experiencing this issue with the latest versions, you can help the project by responding to confirm the problem and by providing any updated reproduction steps. Thanks for helping out.

It is still problem ;)

@github-actions github-actions bot removed the [Status] Stale Gives the original author opportunity to update before closing. Can be reopened as needed. label Jan 13, 2024
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Feb 8, 2024
@skorasaurus
Copy link
Member

skorasaurus commented Jun 13, 2024

experiencing this on GB 18.5

occurs not just in templates; but even a post (of post type page) that has displays multiple query loops on it.

However, I was able to work around the issues @scrobbleme described by manually changing the queryid of one of the loops in the code editor.

@skorasaurus skorasaurus removed [Status] In Progress Tracking issues with work in progress Needs Testing Needs further testing to be confirmed. labels Jun 13, 2024
@skorasaurus
Copy link
Member

skorasaurus commented Jun 13, 2024

There is a duplicate issue of it at #46079 although that issue has an ambiguous issue title so keeping this one open

I found another issue writing about this at #55823 ; so I'm closing this and you can follow its progress by subscribing to that issue.

@skorasaurus skorasaurus added the [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed label Jun 13, 2024
@skorasaurus
Copy link
Member

I found this issue also reported at #55823 with a clearer title and you can follow its progress there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Query Loop Affects the Query Loop Block [Status] Duplicate Used to indicate that a current issue matches an existing one and can be closed [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants