Filtering posts by a group field’s true / false field sub field value with ACF or Meta Box in Bricks

This Pro tutorial covers how posts of a Bricks query loop can be filtered to show only the ones whose true / false or checkbox type of sub field, which is inside a group-type field is equal to true (1).

ACF

Add a meta query in your query loop

where my_group is the group name and featured is the field name within that group.

Meta Box

For performance reasons, Meta Box stores all sub fields of a group in a single row as a serialized string in the database. As such, it is difficult or not straight-forward to query posts by a sub field value when using MB.

This is a BricksLabs Pro tutorial.

For full access login below or create your BricksLabs Pro account

Instant access to 390+ Bricks code tutorials with BricksLabs Pro