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 632 Bricks code tutorials with BricksLabs Pro
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
Pro Term Parent Slug Data Attribute in BricksHow we can set a data attributes on a child taxonomy dynamically based on the parent taxonomy.Read more →Categories: Bricks, ProTags: Terms Query
Pro WordPress Posts using WP REST API in BricksThe steps to display posts from any WordPress site that has WP REST API enabled in Bricks builder using a custom query type.Read more →Categories: Bricks, ProTags: Custom Query Type
How to populate a map with dynamic markers from a CPT using ACF in Bricks (PART 3)This tutorial provides the PHP & JS codes that can be pasted in order to filter your markers on a map each time you digit…Read more →Categories: Bricks, Free, PluginsTags: ACF, Animations, Filters, Isotope, Leaflet, Maps, Query Loop
How to List Your Posts Divided by Categories in BricksIn this tutorial, we'll learn how to display a list of posts divided by each category. The DOM tree Here is how I structured my…Read more →Categories: Bricks, FreeTags: Dynamic Data, Query Loop
How to show data of a post whose ID is the value of a URL parameter in BricksIn the Bricks Facebook group, a user asks: Hey Everyone,I am trying to create the following:1- I have a Custom Post Type2- I have a…Read more →Categories: Bricks, FreeTags: url_parameter
Pro Category Posts Accordion in BricksThis Pro tutorial provides the steps to set up a dynamic accordion of posts grouped by their categories based on the previous Posts Grouped by…Read more →Categories: Bricks, ProTags: Accordion, bricks/posts/query_vars, Nested Queries
Load more for Query loops in BricksDid you know that Bricks has AJAX loading for query loop posts on-click out of the box?Read more →Categories: Bricks, FreeTags: Load more, Query Loop
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