Categoría: BRICKS NESTED QUERIES PRO
-
Posts Grouped by Post Dates in Bricks
This Pro tutorial provides the steps to set up nested query loops in Bricks by registering a custom query type called “Post Dates” for the outer query loop and, in the inner loop, accessing the outer date to get posts (can be of any post type) published on that day. We shall also add caching…
-

Events grouped by months within years based on event date custom field value
Updated on 17 Apr 2024 This Pro tutorial provides the steps to output posts of an event custom post type grouped by years and inside the years within months based on the event’s event_date custom field value using three nested query loops in Bricks. This is an advanced usage showcase of Bricks’ querying capabilities and…
-
Top-level Pages and Children Bricks Query Loop
This Pro tutorial for Bricks users can be considered Part 2 or a variation of the earlier Bricks Query Loop for Top-level Parent Pages with Children tutorial. Given this Page structure: The objective is to list all top-level Pages (not just parent Pages) in the outer query loop and the child Page(s) (if present) of…
-
CPT Posts Grouped by Custom Taxonomy Terms in Bricks
A user asked via email: I need some help with querying custom taxonomies in Bricks and I hope you could help me with that. I have CPT created with Metabox called Services. I also created a custom taxonomy called Service Category. I want to create a query that will first show all of the terms,…
-
Parent Query Loop Object – Traversing Nested Query Loops Up in Bricks
Bricks enables us to build nested query levels of unlimited levels. Here are a couple of examples: Posts Grouped by Categories Nested Queries in Bricks – Posts Grouped by Published Years and Categories Sometimes, you might want to obtain the parent (of any level, not just the immediate parent) query loop’s object and, from this…
-

Posts Grouped by Years and Months in Bricks
Updated on 20 Aug 2024 This Pro tutorial provides the steps to display posts (can be of any post type) organized by months within years based on the published date in Bricks. If you want to do the same but with a date-type custom field value, refer to Events grouped by years within months based…
-

Posts Grouped by Month and Year in Bricks
In the members-only Tutorial Requests area, a user asked: Can you please make a tutorial how to create a post archive base on year and month, like Augustus 2024, September 2024, October 2024. like this https://changelog.announcekit.app/ This Pro tutorial provides the steps to set up nested query loops in Bricks with the outer loop looping…