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 633 Bricks code tutorials with BricksLabs Pro
Pro Events grouped by months within years based on event date custom field valueHow to output events grouped by years and months using three nested query loops in Bricks.Read more →Categories: Bricks, ProTags: Nested Queries
Pro Dynamic Horizontal Posts Accordion in BricksCreating a horizontal accordion of featured images from posts output by Bricks' query loop.Read more →Categories: Bricks, ProTags: Accordion, CSS
Pro Related Episodes Grouped by Episode Chapters on Single Podcasts in Bricks when using JetEngineA user asks: How to Display Related Episodes Grouped by Chapters on a Podcast Page in Bricks? Hi everyone, I have two post types created…Read more →Categories: Bricks, Plugins, ProTags: JetEngine, Relationship
Pro Posts Grouped by Authors in BricksThis Pro tutorial for Bricks users provides the steps to loop through users and inside that, through posts whilst setting the inner query's author parameter…Read more →Categories: Bricks, ProTags: bricks/posts/query_vars, Query Loop
Pro Category and Search Filtering for Nested Bricks Query LoopsHow to add a category dropdown and search input field so visitors can filter posts grouped by categories..Read more →Categories: Bricks, JavaScript, ProTags: Frontend Filters, Nested Queries
Pro Remove Duplicate Term Names From Bricks Terms Query LoopExcluding terms with duplicate names, keeping the first occurrence & excluding subsequent terms with the same name.Read more →Categories: Bricks, ProTags: bricks/terms/query_vars, Terms Query
Pro YouTube Video Timestamps in BricksThis Pro tutorial provides the steps to output a YouTube video given its ID with custom timestamps and their description text using ACF Pro or…Read more →Categories: Bricks, Plugins, ProTags: ACF Pro, ACF Repeater, Interactions, Loop Index, Meta Box
Pro Staggered Entry Animations for Posts in Bricks Query LoopsThe steps for animating the posts output by a Bricks query loop in a staggered animation.Read more →Categories: Bricks, JavaScript, Plugins, ProTags: Animations, Query Loop
Pro Category Grid with ACF Images in BricksCreating a grid of post categories, each category card showing an image from an ACF field, category name & description.Read more →Categories: Bricks, Plugins, ProTags: ACF, Terms Query