Conditions

Pro
in-between-posts-div-bricks-query-loop

How to Insert Element(s) Between Query Loop Posts in Bricks

This Pro tutorial shows how we can insert a Div (or any custom HTML) after nth post (Ex.: after 5th…

Read more

Pro
user-purchased-products-bricks-condition

Check if the User Purchased Any of the Specified Products

This Pro tutorial provides the steps for setting up a dynamic data condition on any element in Bricks so it…

Read more

Pro
CleanShot-2022-12-09-at-22.09.46@2x

Posts Related by Taxonomy in Bricks

It is a common requirement to show posts (posts/CPT items) that belong to the same taxonomy (category/tag/custom taxonomy) as the…

Read more

checking-acf-repeater-populated-bricks

Checking for ACF Repeater Rows in Bricks

Bricks enables us to conditionally output elements if a basic ACF field type like Text has value by selecting it…

Read more

Pro
memberpress-bricks

MemberPress in Bricks

MemberPress is one of the most popular and comprehensive membership plugins for WordPress and this is what we use here…

Read more

Pro
CleanShot-2022-11-18-at-17.36.35@2x

Check If The Latest Post Was Published in The Last X Minutes

In this Pro tutorial we shall define a custom function that takes in the number of minutes as an argument…

Read more

Categories:
product-category-template-bricks

[Function] Current Term Has Children

A user asks: I'm working on an archive template for WooCommerce products. I'm trying to hide a section if there…

Read more

Pro
event-cpt-items

Meta Box Relationship in Bricks

In BricksLabs' Facebook group a user asks: I have a Product (Metabox CPT) that is connected to a Creator (Metabox…

Read more

CleanShot202022-11-0820at2011.52.08

Conditionally Outputting Based on Query Count in Bricks

In the Bricks Facebook group a user asks: Is there a way, either using dynamic data or a custom PHP…

Read more

Categories:
Pro
CleanShot-2022-11-02-at-16.23.41@2x

Query Variables Condition in Bricks

This Pro tutorial provides the steps to register a custom function that returns true or false depending on whether the…

Read more

Pro
conditional-rendering-meta-box-group-field

Conditional Rendering Based On Meta Box Group’s Sub Field

This Pro tutorial shows how we can output an element on a single post pages only if a specified sub-field…

Read more

Pro
meta-box-setting-page-field-conditional-bricks

Meta Box Settings Page Custom Field Conditional in Bricks

This is the equivalent of ACF Options Page Custom Field Conditional in Bricks tutorial for Meta Box. Refer to the…

Read more