Checking if the current post has been published within the last x daysLooking to conditionally output an element if the current post (either in a query loop or when viewing a single post) has been published in…Read more →Categories: Bricks, Free, WordPressTags: Conditions
Pro Checking if the current Page/Post has Children i.e. is a Parent in BricksShows how we can check whether the current Page or Post (of any hierarchical post type) is a parentRead more →Categories: Bricks, ProTags: Conditions
Conditional Output based on Manual Excerpt in BricksHow to display a post’s excerpt only if it has been manually set.Read more →Categories: Bricks, FreeTags: Conditions
Conditional Output on the First Page of Archives in BricksHow to output an element on an archive page only if we're on the first page of the archive.Read more →Categories: Bricks, FreeTags: Conditions, get_query_var
Disabling Bricks’ Header & Footer Conditionally with Custom FieldsHow to give content editors the ability to disable headers or footers on specific posts/pages using custom fields.Read more →Categories: Bricks, FreeTags: bricks/render_footer, bricks/render_header, Conditions, Footer, Header
Pro ACF Repeater sub field value dynamic data condition in BricksThis Pro tutorial provides the steps to output an element on single posts (can be of any post type) only if a specified ACF (Pro)…Read more →Categories: Bricks, Plugins, ProTags: ACF Pro, Conditions, Dynamic Data
Condition for Checking Current Post Category in BricksHow we conditionally display an element based on the current post's categories.Read more →Categories: Bricks, FreeTags: Conditions
Pro At Least 1 Search Result Condition in BricksRegistering a custom condition to render elements depending on whether there is at least one search result.Read more →Categories: Bricks, ProTags: Conditions, Search Results
Checking if Repeater/Cloneable Meta Fields Are Empty in BricksCreating a condition to ensure that a section only gets output if at least one row of data is filled in.Read more →Categories: Bricks, Free, PluginsTags: Conditions
Weekday Condition in BricksAs of Bricks 1.7, the built-in "Weekday" condition does not work correctly. This is most likely due to it not taking the site's timezone (set…Read more →Categories: Bricks, FreeTags: Conditions, Dynamic Data
Pro Month and Day Condition in BricksThis Pro tutorial shows how we can define a custom function that takes in a month in the three-letter format (like Dec) and a day…Read more →Categories: Bricks, ProTags: Conditions, Dynamic Data
Is WooCommerce Cart Empty Condition in BricksLooking to conditionally render an element depending on whether the user's cart is empty or not when using WooCommerce? and use it with a Dynamic…Read more →Categories: Bricks, Free, Plugins, WordPressTags: Conditions, WooCommerce
Bricks Condition for WishList MemberHow to render a Bricks element only if the user has access to a specified WishList Member level.Read more →Categories: Bricks, Free, PluginsTags: Conditions
Pro How to Insert Element(s) Between Query Loop Posts in BricksUpdate on 16 Aug 2023: Follow this tutorial instead. This Pro tutorial shows how we can insert a Div (or any custom HTML) after nth…Read more →Categories: Bricks, ProTags: Conditions, Dynamic Data, Query Loop
Pro Check if the User Purchased Any of the Specified ProductsThis Pro tutorial provides the steps for setting up a dynamic data condition on any element in Bricks so it can be output only if…Read more →Categories: Bricks, Plugins, ProTags: Conditions, Dynamic Data, WooCommerce
Pro Posts Related by Taxonomy in BricksIt is a common requirement to show posts (posts/CPT items) that belong to the same taxonomy (category/tag/custom taxonomy) as the current single post. This Pro…Read more →Categories: Bricks, ProTags: bricks/element/settings, bricks/posts/query_vars, Conditions, Filters
Checking for ACF Repeater Rows in BricksBricks enables us to conditionally output elements if a ACF field of basic type like Text has value by selecting it in the Dynamic data…Read more →Categories: Bricks, Free, PluginsTags: ACF, ACF Repeater, Conditions, Dynamic Data
Pro MemberPress in BricksThis tutorial aims to be a useful resource for using MemberPress in Bricks sites.Read more →Categories: Bricks, Plugins, ProTags: Conditions, Filters, MemberPress
Pro Check If The Latest Post Was Published in The Last X MinutesIn this Pro tutorial we shall define a custom function that takes in the number of minutes as an argument and returns true if there…Read more →Categories: Bricks, ProTags: Conditions
[Function] Current Term Has ChildrenUpdated on 20 Jul 2024 A user asks: I'm working on an archive template for WooCommerce products. I'm trying to hide a section if there…Read more →Categories: Bricks, FreeTags: Conditions, get_term_children
Pro Meta Box Relationship in BricksUpdated on 19 Mar 2024 In BricksLabs' Facebook group a user asks: I have a Product (Metabox CPT) that is connected to a Creator (Metabox…Read more →Categories: Bricks, Plugins, ProTags: Conditions, Dynamic Data, Meta Box, Relationship
Conditionally Outputting Based on Query Count in BricksUpdate on 22 Sep 2023: There's a much simpler built-in method now. See this post. In the Bricks Facebook group a user asks: Is there…Read more →Categories: Bricks, FreeTags: Conditions, WP_Query
Pro Query Variables Condition in BricksThis Pro tutorial provides the steps to register a custom function that returns true or false depending on whether the current page URL has specific…Read more →Categories: Bricks, ProTags: Conditions, Query Variables
Pro Conditional Rendering Based On Meta Box Group’s Sub FieldThis Pro tutorial shows how we can output an element on a single post pages only if a specified sub-field (custom field created using Meta…Read more →Categories: Bricks, Plugins, ProTags: bricks/element/render, Conditions