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 626 Bricks code tutorials with BricksLabs Pro
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 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
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
[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 Conditional single post Bricks template based on internal referrer URLHow to automatically select a single post template depending on the page from which the post is accessed.Read more →Categories: Bricks, ProTags: bricks/active_templates
Checking if the current post has been published within the last x daysConditionally output an element if the current post has been published in the last x number of days.Read more →Categories: Bricks, Free, WordPressTags: Conditions
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 Getting Field Values from a Connected CPT when using Meta Box Relationship in BricksConditionally render elements in a single template of a CPT depending on the value of a regular custom field.Read more →Categories: Bricks, Plugins, ProTags: Conditions, Custom Functions, Meta Box
Pro ACF Options Page Custom Field Conditional in BricksThis Pro tutorial shows how we can set an element in Bricks to be output only if the value of a specific custom field on…Read more →Categories: Bricks, Plugins, ProTags: ACF Pro, Conditions, Options page