5th Aug '24
/
0 comments

Filtering ACF Repeater Rows in Bricks by a Boolean Sub Field

Consider the following "Feature Table" ACF (Pro is needed) field group:

Sample Page with the Repeater populated:

Structure in Bricks editor:

with each column having the same ACF Repeater query loop.

After implementing the tutorial:

So essentially the requirement is to limit the ACF Repeater query loops in the three columns to only those rows for which the specified sub field - basic or business or professional is true respectively.

This Pro tutorial shows how.

Step 1

Set up the field group.

Here's the json export from our dev site.

Step 2

Edit a post of the post type for which the field group is set. Ex.: a Page

Add your features (3 in this example) and for each select what user group/product purchase/membership etc. is associated with it.

Step 3

Edit your Page or the template with Bricks.

This is a BricksLabs Pro tutorial.

For full access login below or create your BricksLabs Pro account

Get access to all 626 Bricks code tutorials with BricksLabs Pro

Related Tutorials..

Pro
Filtering ACF Relationship Query by Post Meta in Bricks

Filtering ACF Relationship Query by Post Meta in Bricks

How to filter the posts of a post type related to another post type based on the value of a True / False type ACF…
Pro
ACF Taxonomy Field Value in Single Posts

ACF Taxonomy Field Value in Single Posts

Consider this scenario: CPT: Movie Movie CPT Taxonomy: Movie Genre Movie Genre Taxonomy's field: Genre Color Each movie will have only genre set. The requirement…
Categories:
Tags:
Pro
Bricks Dynamic Data Tag for Text-type Custom Field Value with Word Limit

Bricks Dynamic Data Tag for Text-type Custom Field Value with Word Limit

How to register a new dynamic tag for setting excerpt word limits and outputting an ellipsis (...) at the end.
Categories:
Adding any Custom WP_Query loop to Bricks’ Query Loop

Adding any Custom WP_Query loop to Bricks’ Query Loop

Sometimes we may need to create a custom post loop using Bricks' query loop feature, but wish to use our own WP_Query code for more…
Pro
ACF Repeater Row Count Condition in Bricks

ACF Repeater Row Count Condition in Bricks

This Pro tutorial provides the steps to output elements on single posts (of any post type) in Bricks only if a specific ACF Repeater-type of…
Categories:
How to populate a map with dynamic markers from a CPT using ACF in Bricks (PART 2)

How to populate a map with dynamic markers from a CPT using ACF in Bricks (PART 2)

This tutorial provides the PHP & JS codes that can be pasted in order to create a flying effect on map markers each time your…