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 Loop: tag filtering limited to 100 tags #33581

Closed
hellofromtonya opened this issue Jul 20, 2021 · 14 comments · Fixed by #46649
Closed

Query Loop: tag filtering limited to 100 tags #33581

hellofromtonya opened this issue Jul 20, 2021 · 14 comments · Fixed by #46649
Assignees
Labels
[Block] Query Loop Affects the Query Loop Block [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended

Comments

@hellofromtonya
Copy link
Contributor

hellofromtonya commented Jul 20, 2021

Description

First reported in Core Trac ticket 53704.

When there are more than 100 tags (in the above report there are 300 tags), only 100 tags are available for filtering the Query Loop.

Step-by-step reproduction instructions

  1. Using wp-cli create at least 200 tags (these will be created as Tag 1 to Tag NNN)
  2. Create a post
  3. Add a Query Loop block and select the first template
  4. Go to the Tags field in the block's Filters
  5. Type Tag 100 => Notice it does appears and is selectable as the filter
  6. Type Tag 200 => Notice it does not appear and is not selectable as the filter

Expected behaviour

The tag field's auto complete should fetch the next group of tags that match what has been typed into the field. In other words, it should display these tags and allow them to be selectable.

Actual behaviour

Tags named as Tag 1 to Tag 302.

  • When typing Tag 1, the field displayed Tags 1 to Tags 189. It did not display Tag 190+.
  • When typing Tag 2, nothing showed in the field and pressing enter for manually input it did not work (reset the field to empty).
  • When typing Tag 302, nothing showed in the field and pressing enter for manually input it did not work (reset the field to empty).

Note: No errors in browser console.

Screenshots or screen recording (optional)

53704-reproduced

and video provided by reporter https://youtu.be/lKlYlMZ6Mx0

WordPress information

  • WordPress version: 5.8
  • Gutenberg version: NA
  • Are all plugins except Gutenberg deactivated? Yes AND Gutenberg plugin is also deactivated
  • Are you using a default theme (e.g. Twenty Twenty-One)? Yes

Device information

  • Device: Desktop
  • Operating system: macOS Big Sur v 11.4
  • Browser: Chrome v 91.0.4472.114
@hellofromtonya hellofromtonya added [Type] Bug An existing feature does not function as intended [Block] Query Loop Affects the Query Loop Block labels Jul 20, 2021
@kev-mas
Copy link

kev-mas commented Oct 15, 2021

Any update on this?

@JoshuaLindquist
Copy link

Will this be fixed before block themes are released in January? I have been trying to use the Query Loop block to update pages; I wanted to remove some custom solutions and use the built-in Gutenberg tools, but I immediately ran into this problem. Filtering a query by a tag seems like a common scenario, and right now it does not work on a medium-sized site.

@JosVelasco
Copy link

I had to manually add the tag ID using the code view of the editor. I'm also waiting for this fix.

@MuluhGodson
Copy link

Will this be fixed before block themes are released in January? I have been trying to use the Query Loop block to update pages; I wanted to remove some custom solutions and use the built-in Gutenberg tools, but I immediately ran into this problem. Filtering a query by a tag seems like a common scenario, and right now it does not work on a medium-sized site.

We are currently in a similar scenario. Is there any new development as concerns this issue?

@brylie
Copy link
Contributor

brylie commented Feb 18, 2022

For clarity, we have 3,527 tags, so the 100 tag limit is far from ideal.

@brylie
Copy link
Contributor

brylie commented Feb 18, 2022

For anyone needing a workaround, here is how to manually add the tag ID, as @JosVelasco mentioned:

  1. get the desired tag ID by visiting the Tags page and hovering over the tag (the ID will be in the URL after tag_ID=)
  2. click the vertical ellipsis in the upper right hand corner of the edit screen
  3. click "code editor"
  4. look for the query and add the tag ID to the tagIds array

image

image

@jbryanbarnes
Copy link

Hello, I wanted to note that we are also experiencing this issue on WP6 and hoping there will one day be a resolution. It's hard to keep using workarounds with categories and keywords. The 100 tag limit seems fairly arbitrary and hoping we could see an improvement made.

@SkylerMax
Copy link

Why is it so hard to solve this problem? It is a painfull process to clarify the situation to my customer and educate them to code - they do not want to code, that's why they use WordPress...

@hamannjames
Copy link

Wondering if there is a solution to this problem as well. Mad props to @JosVelasco for the workaround. If there is no one working on resolving this right now, can you clarify if you are open to pull requests to dix the problem?

@sandandkush
Copy link

I'm experiencing this issue too.

I initially thought it has something to do with my theme or plugin, but my developer informed me that the issue was on WordPress and that I should contact WordPress support. Fortunately, it's a general issue. Surprisingly, it's still not fixed after being identified in 2021.

Hopefully, the issue gets fixed in the near future as the Post List block is a very useful feature I use on my projects and clients' projects. I had been using Category and Keyword filters as a workaround, but that approach is not sufficient.

Big shout out to @JosVelasco and @brylie for a better workaround!

@mtoensing
Copy link

This task is open for more than 12 months? I am glad I found this issue. I thought it was a bug with my content.

@ghost
Copy link

ghost commented Dec 10, 2022

Gotta add a "ditto"on this one. Stumbled across this bug the hard way after spending hours removing another plugin that helped me generate lists of posts that have a tag. Now I'm stuck, unable to go froward while not thrilled about going back to the old way.

@rafaucau

This comment was marked as outdated.

@ntsekouras
Copy link
Contributor

Hey 👋 - I'd appreciate some testing in this PR that aims to resolve this issue. Thanks!

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] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.