Conditionally Hide a Section on a Specific Taxonomy’s Term Archives in BricksA user asked: I have a CTA in the footer of my site, which I have custom fields on various templates, etc to populate. I…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
Check if a given category has at least one postThere could be situations where you want to check if a given category (by its slug) has at least 1 post assigned to that category.…Read more →Categories: Bricks, FreeTags: Conditions
Pro Conditionally Rendering an Element Outside the Loop based on Taxonomy Term in BricksA user asks: Hiding element based on taxonomy I have an element in a footer that I want to hide if a page has a…Read more →Categories: Bricks, ProTags: Dynamic Data
Pro Bricks Dynamic Condition – Check if today falls within 5 days before any holiday dateCreating a custom condition that returns true or false depending on whether today falls within 5 days before any holiday dates selected on a Meta…Read more →Categories: Bricks, ProTags: Meta Box
Pro Checking ‘PublishPress Future’ plugin’s Future Action enabled postsPublishPress Future is a handy plugin for scheduling actions like unpublishing or deleting posts (of any post type) at a specified date and time in…Read more →Categories: Bricks, Plugins, ProTags: PublishPress
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
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 Conditional Output in Bricks based on if Content has HeadingsHow to prevent the output of the table of contents if the content has no headings.Read more →Categories: Bricks, ProTags:
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
Pro Conditional Output in Bricks based on Visitor SelectionHow we can dynamically show elements based on user selection.Read more →Categories: Bricks, ProTags: AJAX, Cookies, Fetch API, localStorage
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