18th Nov '22/0 comments/FavoriteCheck If The Latest Post Was Published in The Last X MinutesSridhar Katakam This is a BricksLabs Pro tutorial. For full access login below or create your BricksLabs Pro account Username Password Remember Me Forgot Password Tagged: BricksConditionsProSridhar KatakamSridhar Katakam is a Bricks enthusiast. He likes helping others by researching and solving WordPress-related problems and building websites.Get access to all 526 Bricks code tutorials with BricksLabs Pro
Pro City-based and Country-based Conditional Output in BricksThis Pro tutorial provides the steps to render a Bricks element only if the visitor is from the specified country or city. Note: Caching may…Read more →Categories: Bricks, ProTags: Geotargeting
Pro Conditional Rendering of ACF Repeater Rows Based on True / False Sub Field in BricksThis Pro tutorial provides the steps to modify a ACF Repeater query loop to only output the rows for which a True / False type…Read more →Categories: Bricks, Plugins, ProTags: ACF Repeater
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
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
Conditionally Outputting Elements Only for Posts That Have a Specific Taxonomy TermUsing the core WordPress has_term() function for checking if the current post has a specific term of a given taxonomy.Read more →Categories: Bricks, FreeTags: 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
Pro Conditional CSS Classes based on Bricks Query CountIn a Bricks project I am currently working on, there are nested query loops - team members inside departments on a Page. Each team member…Read more →Categories: Bricks, ProTags: bricks/element/render_attributes
How to conditionally load your scripts based on an ACF fieldThis tutorial provides the PHP codes that can be pasted in order to enqueue your scripts conditionally based on the value of an ACF field…Read more →Categories: Bricks, Free, PluginsTags: ACF, Conditions
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