Querying Posts by JetEngine Switcher Field in Bricks

A user in our Facebook group asks:

I have a switcher type field on a custom post type created with JetEngine, with values ‘1’ or ‘0’. Is it possible to display only posts with switcher value of ‘1’ in a specific query loop?

This can be done by simply adding a meta query in the Bricks query loop’s settings.

where featured is the Name/ID of the custom field created with Crocoblock JetEngine.

This will make only the posts for which the switcher field is switched on to be output.

Get access to all 526 Bricks code tutorials with BricksLabs Pro

Leave the first comment

 

Related Tutorials..

Pro
Posts Grouped by Post Dates in Bricks

Posts Grouped by Post Dates in Bricks

Setting up query loops for “Post Dates” with an the inner loop displaying all posts published on that day.
Categories:
Pro
JetEngine Field Value(s) and Label(s)

JetEngine Field Value(s) and Label(s)

A few users in the Bricks forum wanted to know how to retrieve the label that corresponds with the selected value when the type of…
Categories:
Tags:
Pro
Alternating Posts from Two Post Types in Bricks

Alternating Posts from Two Post Types in Bricks

How to output posts from two seperate post types, alternating in a query loop.
Categories:
Pro
Post Data for the Current User in Bricks with Meta Box

Post Data for the Current User in Bricks with Meta Box

In the Bricks Facebook group a user asked: I need help with Metabox and Bricks! I have created a CPT "SalesRep" with multiple custom fields…
Categories: