generateblocks icon indicating copy to clipboard operation
generateblocks copied to clipboard

[Query loop] Group by taxonomy

Open quantumleap33 opened this issue 3 years ago • 2 comments

A great feature would be the ability to group query loop results by taxonomies.

For example, let's say posts belong to certain categories. It would be able to display results like the following: Category 1 Post 1 Post 2 .....

Category 2 Post 3 Post 4 ....

Category 3 Post 4 Post 5 ....

Also the ability to include/exclude posts that belong to multiple categories.

quantumleap33 avatar May 14 '22 15:05 quantumleap33

@quantumleap33 great idea, I think a better approach would be to have "child" query loops where you could have a query loop of taxonomies and a child loop for the posts belonging to that taxonomy. I've tried that in early stages of query loop but had some difficulties, our plan is to enable loops of different objects (users, media, taxonomies, comments) in the future, with that this "child" queries would allow you to achieve exactly this.

JeanPaiva avatar May 18 '22 13:05 JeanPaiva

@JeanPaiva Sounds awesome, man, looking forward to it!

quantumleap33 avatar May 18 '22 13:05 quantumleap33

Will be tracked on https://github.com/tomusborne/generateblocks-pro/issues/125

JeanPaiva avatar Jan 11 '23 16:01 JeanPaiva