tomusborne / generateblocks

GenerateBlocks is a small collection of lightweight WordPress blocks that can accomplish nearly anything.
https://generateblocks.com
195 stars 19 forks source link

Better Query Loop arg filtering #1048

Open tomusborne opened 1 year ago

tomusborne commented 1 year ago

We need to implement a better way to implement our `` filter so that we can target specific Query Loops.

Right now we suggest that people add a custom class to the "Grid" block inside the Query Loop, and then check for that class when using the filter.

However, this is less than ideal as the Grid block won't always be there, and it requires you to add the same class to the pagination button blocks as well: https://generate.support/topic/query-loop-pagination-issues-page-numbers-do-not-update-with-custom-filtering/page/2/#post-20138