30th Jul '24
/
0 comments

Bricks Term Query Sorted by Tag Count of Posts in the Current Category

Bricks Term Query Sorted by Tag Count of Posts in the Current Category

In the Bricks Facebook group a user asks:

I have a archive template for post categories. I would like to know if is possible using query builder, extract the most used post tags for post of current category

This Pro tutorial provides the steps to set up a Terms query loop in Bricks for tags and order the results by the tag count for the posts in the current category when viewing category archive pages.

Step 1

Edit the template (create, if not existing) that applies to your category archives with Bricks.

Set up a Tags query.

This is a BricksLabs Pro tutorial.

For full access login below or create your BricksLabs Pro account

Get access to all 610 Bricks code tutorials with BricksLabs Pro

Related Tutorials..

Pro
Limit the Number of Posts in a Bricks Query Loop of Relationship Type

Limit the Number of Posts in a Bricks Query Loop of Relationship Type

Updated on 12 Dec 2023 Bricks Query Loop popup does not have a control for setting the number of posts to be output when the…
How to Remove Name and Website Fields in Bricks Comment Forms

How to Remove Name and Website Fields in Bricks Comment Forms

Updated on 14 Mar 2024 In the BricksLabs Facebook group a user asked: What is the best method to remove fields from the Bricks "Comments"…
How to hide/remove the Block Element from the Bricks Builder

How to hide/remove the Block Element from the Bricks Builder

Don't like the new Block element in Bricks? Just copy/paste the following code into your child theme's functions.php. By the way, It's a terrible idea…
Categories:
Tags:
Pro
Random Row from ACF Repeater in Bricks

Random Row from ACF Repeater in Bricks

In the past, we shared how the first row of a ACF Repeater can be output in a Bricks query loop here. This Pro tutorial…