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 625 Bricks code tutorials with BricksLabs Pro

Related Tutorials..

Pro
Filtering a Bricks Terms query on Term archive pages

Filtering a Bricks Terms query on Term archive pages

On product category archives, how to show product type names but only those that the current product category has.
Pro
Conditionally Excluding Elements from Bricks Editor

Conditionally Excluding Elements from Bricks Editor

In the past, we shared How to Exclude Elements from Bricks Editor. This Pro tutorial shows how specific elements can be excluded selectively based on…
Pro
“Truncate text to these many characters” Bricks Control

“Truncate text to these many characters” Bricks Control

Bricks provides a :<number> dynamic data tag modifier that can be used to limit the amount of text by the specified number of words. Ex.:…
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
Outputting Only the First ACF Repeater Row in Bricks

Outputting Only the First ACF Repeater Row in Bricks

Updated on 12 Dec 2023 In the Bricks Facebook group a user asks: How can I display only the first entry from an ACF repeater?…