Bricks Tutorials

(630 tutorials)
McDonald’s Order Promise Analogy screen shot

McDonald’s Order Promise Analogy

From the JavaScript course I am doing now: A Promise is like placing an order at a restaurant. You receive a ticket (Promise object) that indicates your order is being…
Categories:
Pro
Conditionally Rendering an Element Outside the Loop based on Taxonomy Term in Bricks screen shot

Conditionally Rendering an Element Outside the Loop based on Taxonomy Term in Bricks

A user asks: Hiding element based on taxonomy I have an element in a footer that I want to hide if a page has a particular taxonomy value. Consider this…
Categories:
[Notes] JavaScript Modules screen shot

[Notes] JavaScript Modules

I recently began my journey to become a full-stack developer and am starting a series where I share my notes on what I've learned that day. This post on ES6…
Categories:
Tags:
Pro
Merging ACF Gallery Images with Featured Image in Bricks screen shot

Merging ACF Gallery Images with Featured Image in Bricks

Updated on 12 Mar 2025 In the Bricks Facebook group a user asks: Merging images from different fields into a single gallery Hi, I have a Gallery field created in…
Categories:
Pro
CMB2 Repeatable Group Bricks Query Loop screen shot

CMB2 Repeatable Group Bricks Query Loop

This Pro tutorial provides the steps to create a custom query loop type for outputting the subfield values of a Group field (repeatable) when using CMB2, a free custom fields…
Pro
Host Post’s Term in Bricks Query Loop screen shot

Host Post’s Term in Bricks Query Loop

Updated on 4 Mar 2025 In the BricksLabs Facebook group a user asked: Hi everyone, I’m facing a tricky situation that might have a simple solution, but I’m having a…
Categories:
Pro
Filtering Bricks Query Loop By Meta Box Relationship screen shot

Filtering Bricks Query Loop By Meta Box Relationship

In the Bricks Facebook group a user asks: Consider this setup: CPTs: Service Areas and City Pages Meta Box Relationship: City Pages to Service Areas A Service Area post can…
Categories:
Pro
Filtering Meta Box Cloneable Group by Select Subfield for Multiple Bricks Query Loops with Conditional Output screen shot

Filtering Meta Box Cloneable Group by Select Subfield for Multiple Bricks Query Loops with Conditional Output

In the Bricks Facebook group a user asks: Consider this cloneable Meta Box field group for a Custom Post Type called Tour: with the Tour Block Position select subfield having…
Pro
Sorting a Cloneable Meta Box Group by a Date Subfield in Bricks screen shot

Sorting a Cloneable Meta Box Group by a Date Subfield in Bricks

In the past we showed how to order Meta Box group rows in Bricks by a text-type subfield here. This Pro tutorial covers the same, but for a Date Picker…
Pro
Bricks Dynamic Condition – Check if today falls within 5 days before any holiday date screen shot

Bricks Dynamic Condition – Check if today falls within 5 days before any holiday date

Creating a custom condition that returns true or false depending on whether today falls within 5 days before any holiday dates selected on a Meta Box setting page.
Categories:
Tags:
Pro
Dynamic Google Map in Bricks – Markers from ACF Repeater Google Map Sub Field Values screen shot

Dynamic Google Map in Bricks – Markers from ACF Repeater Google Map Sub Field Values

This Pro tutorial provides the steps to show the addresses entered using a Google Map sub field of a ACF Repeater as markers on a Google map using Google Maps…
Categories:
Pro
Checking ‘PublishPress Future’ plugin’s Future Action enabled posts screen shot

Checking ‘PublishPress Future’ plugin’s Future Action enabled posts

PublishPress Future is a handy plugin for scheduling actions like unpublishing or deleting posts (of any post type) at a specified date and time in the future. It provides a…
Categories:
Pro
Meta Box Relationship Posts Filtered by a Taxonomy Term in Bricks screen shot

Meta Box Relationship Posts Filtered by a Taxonomy Term in Bricks

Updated on 17 Feb 2025 In the Inner Circle a user asks: Hello, I have a relationship made in metabox between two Post Types “Travel” AND “Programs” When I am…
Categories:
Pro
ACF User Field Bricks PHP Query screen shot

ACF User Field Bricks PHP Query

In the Bricks Facebook group a user asks: my end goal was to create a set of cards that would display the Users that are in an ACF User field…
Categories:
ACF Relationship: Count of Related Posts screen shot

ACF Relationship: Count of Related Posts

Looking to get the number of CPT B posts related to a CPT A post when using a Relationship field with ACF? Here's a custom function for that: bl_get_related_posts_count( 'related_cities'…
Categories:
Tags:
Pro
Filtering posts by a group field’s subfield value with Meta Box when using a custom table in Bricks screen shot

Filtering posts by a group field’s subfield value with Meta Box when using a custom table in Bricks

Filtering a query loop to output only those posts with the value of a Select subfield of a Group field set to Yes when using a custom table in Meta…
Categories:
Tags:
Pro
Hover & Switch Images for SureCart Products in Bricks screen shot

Hover & Switch Images for SureCart Products in Bricks

How to display a secondary image for each SureCart product when the user hovers/focus each product in a query loop.
Categories:
Tags:
Pro
Changing Bricks Lightbox Arrow Icons screen shot

Changing Bricks Lightbox Arrow Icons

How to change the left and right arrow svg icons with custom ones in Bricks lightbox.
Categories:
Tags: