22nd Nov '23
/
0 comments

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

Leave the first comment

 

Related Tutorials..

HappyFiles Bricks Query Loop

HappyFiles Bricks Query Loop

This tutorial explores different ways in which images from WordPress Media Library organized via HappyFiles can be pulled and shown in Bricks using query loop(s).…
Categories:
Pro
How to Query WordPress Taxonomy Terms by Hierarchy Level in Bricks

How to Query WordPress Taxonomy Terms by Hierarchy Level in Bricks

How to limit the terms of a Bricks Terms query to only those at a specific level within the taxonomy hierarchy.
Categories:
Pro
Categories and SubCategories Query Loop Tabs in Bricks

Categories and SubCategories Query Loop Tabs in Bricks

Learn how to show top-level parent categories as tab titles and the corresponding subcategories as tab contents using Bricks nested queries.
Categories:
Pro
Posts from Random Categories in Bricks

Posts from Random Categories in Bricks

Updated on 31 Jul 2023 In BricksLabs Facebook group a user asked: How would you query 3 WordPress posts from 3 different categories with Brick…
Pro
Parent post Bricks query loop

Parent post Bricks query loop

Updated on 5 Feb 2024 In the BricksLabs Facebook group a user asks: Is there a way to output the data of a parent post…
Categories: