Mindblown: a blog about philosophy.

  • ACF Gallery Image URL by Index in Oxygen

    ACF Gallery Image URL by Index in Oxygen

    This Premium tutorial provides the steps to set an image specified by its index from a ACF Pro Gallery-type field for Pages as the background of the hero section for Pages in Oxygen. ACF Field Group: Field being populated on a Page: After implementing the tutorial, 2rd image (Index = 1) as Hero section background…

  • Filtering Query Loop Posts by a Non-empty Custom Field in Oxygen

    Filtering Query Loop Posts by a Non-empty Custom Field in Oxygen

    In the unofficial Oxygen group on Facebook, a user asks: I’m using a repeater element that pulls a custom post type. This part is all good. Where I’m getting stuck is that I’m trying to ONLY show posts that have content in one of the custom fields. For instance: there are 10 testimonials, but only…

  • Post-specific Video Backgrounds in Oxygen using Meta Box

    Post-specific Video Backgrounds in Oxygen using Meta Box

    This Premium tutorial is similar to the Video Background in Oxygen using ACF tutorial, but when using Meta Box. Step 1 Install and activate Meta Box and Meta Box AIO plugins. Create this field group (JSON export) using Meta Box for your desired post type: For the Video type field, set “Max number of files”…

  • [Condition] Current user has published at least one post of the specified post types

    [Condition] Current user has published at least one post of the specified post types

    This members-only tutorial provides the code to register a custom condition for outputting elements depending on if the current user has at least 1 published post of the specified post types in Oxygen builder. We are going to specify the post types in the condition. If true is selected, the elements on which the condition…

  • Meta Box Checkbox List Condition in Oxygen

    Meta Box Checkbox List Condition in Oxygen

    This premium tutorial provides the steps to set up a custom condition in Oxygen for outputting elements only if the current user has the selected option ticked via a Checkbox List type of Meta Box field. Field group for Users: Field being populated on a user profile page: Applying the condition in Oxygen builder: With…

  • Posts/CPT Items Related by Taxonomy in Oxygen

    Posts/CPT Items Related by Taxonomy in Oxygen

    In the past we wrote about Other Posts in the same category while excluding the current post in Oxygen and Related entries based on taxonomy in Oxygen that showed how to output posts or Custom Post Type items assigned to the same term(s) as the current single post being viewed. Oxygen’s advanced query option means…

  • Get Image Sub Field from Meta Box Group Field in Oxygen

    Get Image Sub Field from Meta Box Group Field in Oxygen

    As of Oxygen 4.3 it is not possible to set an Image component’s ID or URL to that of a Single Image-type sub field that’s inside a cloneable group field when using Meta Box and Oxygen Repeater component. This members-only tutorial shows how we can define custom functions that can be used with the dynamic…

  • Advanced Query Param for Excluding Restricted Posts To Current User with Restrict Content Pro in Oxygen

    Advanced Query Param for Excluding Restricted Posts To Current User with Restrict Content Pro in Oxygen

    Restrict Content Pro enables us to restrict posts by various criteria like per post or per category/taxonomy. Post titles/links in WordPress loops will output all the posts by default, even those that the current user has no access to. For default queries, it is possible to not show such restricted posts by ticking “Hide Restricted…

  • Accessing Image Sub Field’s Alt Inside Oxygen and ACF Repeater

    Accessing Image Sub Field’s Alt Inside Oxygen and ACF Repeater

    Scenario: “WP Builders” ACF Pro Repeater with a “Image” (image-type) sub field. In the Oxygen Builder, these images can be output by setting the Oxygen Repeater component to query the ACF Repeater and setting Image URL to Post → Repeater Field → Image (the name of the sub field). where the image field’s return format…

  • Previous and Next Buttons Inside Oxygen Tabs

    Previous and Next Buttons Inside Oxygen Tabs

    This members-only tutorial shows how we can set up previous and next buttons inside Oxygen’s tabs content that enables visitors to navigate to the previous and next tabs respectively. Step 1 Add a Section and inside that a Tabs component. Wrap the Tabs div that gets added in a Div and move the Tabs Content…

  • Checking if the current category archive page is either the specified category or a child of the specified category

    Checking if the current category archive page is either the specified category or a child of the specified category

    In WPDevDesign Facebook group a user asks: Oxygen Condition needed I have default WP posts categories like below : HOME DECOR TIPS- INDOOR TIPS – – DINING ROOM TIPS – – BEDROOM TIPS – – STUDY ROOM TIPS – GARDEN TIPS- – PLANTERS TIPS – – WALL HANGERS TIPS OUTDOOR TIPS – LIGHTING AREA- -…

  • Dynamic Data Condition For Checking Upcoming Events with The Events Calendar

    Dynamic Data Condition For Checking Upcoming Events with The Events Calendar

    In the Oxygen Facebook group, a user wanted to know how to conditionally output a Section if there is at least 1 future/upcoming event when using Modern Tribe’s The Events Calendar. We can define a custom function that returns 1 if there are any upcoming events or 0 if there are none using tribe_get_events() and…

  • Conditionally Outputting if Date Field’s Value is Not Older Than 7 Days

    A member asked: I need your help for a tutorial How can I only show a div in Oxygen conditions when a ACF date field is not older dan 7 days? We can define a custom function that compares the post’s date-field value against the time a week ago and either return true or false.…

  • Conditional Related Products in Oxygen

    Conditional Related Products in Oxygen

    When a Product Builder component is used in the single WooCommerce product Template in Oxygen, it (technically, WooCommerce) will ensure that the related products element is not output when there are no related products out of the box. There could be times when you want to set up related products yourself using Oxygen’s Repeater or…

  • My thoughts on Soflyy, Oxygen and Breakdance

    My thoughts on Soflyy, Oxygen and Breakdance

    It is no exaggeration that I have spent more time using Oxygen Builder and writing tutorials on it than with my family for the last 3.5 years. In light of today’s announcement in Facebook by Louis Reingold, the CEO of Soflyy (makers of Oxygen) in the Oxygen group about the alpha launch of their new…

  • [Condition] Don’t Output After (or) Expires On

    This members-only tutorial provides the steps to register a custom condition in Oxygen using which elements will stop being output on the front end after the specified date (and time). This is useful for displaying say, a promo bar above the site header only during the sale period. The reasons why you might want to…

  • [Function] Get Count of Other CPT Items in the Current Item’s Taxonomies

    [Function] Get Count of Other CPT Items in the Current Item’s Taxonomies

    Scenario: CPT: attorney Associated taxonomy: location Sample terms (hierarchical – checkboxes like categories): Tallahassee, Cape Coral, Orlando An attorney can have multiple locations. Requirement: Create a condition that could be applied to any element on single attorney pages that will output it only if there is more than 1 attorney (other than the current one…

  • [Condition] Browser Language

    [Condition] Browser Language

    This members-only tutorial provides the code for registering a custom condition using which elements in Oxygen can be set to be output if the visitor’s browser language matches the specified string in the condition. We shall make == and contains operators be available. == is for exact match incl. the region code. This is case-sensitive.…

  • [Condition] Is Current Term a Parent?

    [Condition] Is Current Term a Parent?

    This members-only tutorial shows how to register a custom condition in Oxygen to output elements if the current term archive page being viewed on the front end has sub/child terms i.e., if it is a parent term. false option makes it possible to output elements if the current term archive does not have children i.e.,…

  • [Condition] Is Current Category a Parent?

    [Condition] Is Current Category a Parent?

    This members-only tutorial shows how to register a custom condition in Oxygen to output elements if the current category archive page has sub/child categories i.e., if it is a parent category. false option enables you to output elements if the current category archive does not have children i.e., if is not a parent category. The…

Got any book recommendations?