27th Jun '25/0 commentsHow to Query WordPress Taxonomy Terms by Hierarchy Level in BricksSridhar Katakam This Pro tutorial provides the steps to limit the terms of a Bricks Terms query to only those at a specific level within the taxonomy hierarchy. Consider this WooCommerce product categories hierarchy: After implementing the tutorial we can output all terms in level 1 or 2 or 3 etc. Terms in level 1 (note this is also possible w/o any custom code): Terms in level 2: Terms in level 3: Step 1 Add the following in child theme's functions.php (w/o the opening PHP tag) or a code snippets plugin: This is a BricksLabs Pro tutorial. For full access login below or create your BricksLabs Pro account Username Password Remember Me Forgot Password Tagged: BricksProTerms QuerySridhar KatakamSridhar Katakam is a Bricks enthusiast. He likes helping others by researching and solving WordPress-related problems and building websites.Get access to all 626 Bricks code tutorials with BricksLabs Pro
Pro Weekday Column Posts Bricks Query LoopThe steps to arrange the posts output by a Bricks query loop(s) in weekday columns based on a weekday custom field.Read more →Categories: Bricks, ProTags: CSS Grid, Data Attributes, Nested Queries, Query Loop
Pro Posts Grouped by Taxonomy Terms in Bricks using BricksExtras’ Dynamic Table and Pro TabsHow to output any post type, with the taxonomy terms as Tab titles and posts inside tables with sortable columns.Read more →Categories: Bricks, Plugins, ProTags: BricksExtras, Nested Queries
Pro Dynamic Posts Lightbox in Bricks using GLightboxSteps to set create a dynamic lightbox with content from the post inside of the query loop.Read more →Categories: Bricks, ProTags: Lightbox, Query Loop
How to display a Query Loop in 3 columns in BricksThis tutorial provides the builder settings and CSS codes that can be pasted in order to create a 3-columns query loop container inside Bricks Builder.Read more →Categories: Bricks, FreeTags: CSS, CSS Grid, Flexbox, Query Loop
Pro Parent Query Loop Object – Traversing Nested Query Loops Up in BricksBricks enables us to build nested query levels of unlimited levels. Here are a couple of examples: Sometimes, you might want to obtain the parent…Read more →Categories: Bricks, ProTags: Nested Queries
Pro Previous Two Posts in Bricks Query LoopThis Pro tutorial shows how we can modify the parameters of a Bricks query to limit the posts to the previous two whilst cycling to…Read more →Categories: Bricks, ProTags: bricks/posts/query_vars
Pro Current Single Post Reference From Inside a Bricks Query LoopUse case: Get the single post’s custom field (like ACF Repeater or Meta Box Group) array row corresponding to the loop’s counter/indexRead more →Categories: Bricks, ProTags: Query Loop
Bricks Templates Query LoopHow display Bricks Templates with saved screenshots in a query loop.Read more →Categories: Bricks, FreeTags: Query Loop
Pro Displaying Gallery of SureCart Product Images with Bricks’ Query LoopCustom query loop for looping through SureCart product images.Read more →Categories: Bricks, Plugins, ProTags: SureCart