22nd May '22/1 commentConditional Section when Post has a Featured Image in BricksSridhar Katakam This Pro tutorial provides the steps to output a Section in Bricks on single posts (of any post type) only if the post has a featured image. Step 1 Create a Template of the type Section named say, "Featured Image Section" and edit it with Bricks. Add a Section and place your desired content like a Heading and Image inside the Section's Container. Select Featured Image to be shown and select a suitable image size. Step 2 Edit the Template that applies the single view of your post type or a specific Page with Bricks. Add a Code element where you would like to conditionally output your featured image section. 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 610 Bricks code tutorials with BricksLabs Pro
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 User Role Conditional Output in BricksThis Pro tutorial provides the steps to output elements based on their CSS class to users of the specified role in WordPress when using Bricks…Read more →Categories: Bricks, ProTags: Conditions
Pro Conditionally Outputting Query Loop Item Based on Post Meta in BricksRendering query-loop enabled posts depending on the value of each post's custom field value is tricky because by default, the custom field plugins' functions or…Read more →Categories: Bricks, ProTags: bricks/element/render
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
Pro Showing a Popup conditionally in Bricks based on Query ParameterHere's two ways a Bricks Popup can be shown on page load depending on URL parameter value.Read more →Categories: Bricks, ProTags: Popup
Checking for ACF Repeater Rows in BricksUpdated on 13 Feb 2025 Bricks enables us to conditionally output elements if a ACF field of basic type like Text has value by selecting…Read more →Categories: Bricks, Free, PluginsTags: ACF, ACF Repeater, Conditions, Dynamic Data
Checking for Post Type in BricksA way to output elements conditionally based on the current post type in the loop in Bricks.Read more →Categories: Bricks, FreeTags: Dynamic Data
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
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