Mindblown: a blog about philosophy.

  • 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…

  • 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…

  • How to Show Future Posts x Number of Days From Today in Oxygen

    This members-only tutorial provides the steps to use Oxygen’s Advanced Query to output posts scheduled in the future whose publish date is set to a specified number of days from today. Ex.: Show posts that are scheduled to be published a week (7 days) later. Step 1 Let’s define a custom function that takes the…

  • How to Query by a ACF Checkbox Field Inside a Group Field in Oxygen

    How to Query by a ACF Checkbox Field Inside a Group Field in Oxygen

    This members-only tutorial provides the steps to use Oxygen‘s Advanced Query builder to output entries (can be of any post type) that have a specific checkbox checked when the checkbox is inside a group. Step 1 Create a ACF field group having a Group-type of field with a Checkbox-type of sub field. Attach the field…

  • Get Current Taxonomy and Term ID for Advanced Queries in Oxygen

    Get Current Taxonomy and Term ID for Advanced Queries in Oxygen

    This members-only tutorial provides the steps to set taxonomy and terms query params in Oxygen’s Advanced Query to be dynamic/automatic. Scenario: There are multiple taxonomies each attached to multiple post types. Ex.: CPTs of interest: investigation besides the built-in postTaxonomies: format, country, companyA sample term of the format taxonomy: podcast Requirement: When viewing a term…

  • How to Ignore Sticky Posts in Oxygen’s Advanced Query

    How to Ignore Sticky Posts in Oxygen’s Advanced Query

    Want to exclude sticky posts from the fetched posts when a Oxygen Builder‘s Easy Posts or Repeater component’s query is set to Advanced Query? Just add ignore_sticky_posts parameter and set its value to 1. Reference https://luetkemj.github.io/wp-query-ref/

  • How to show linked products on product category archives using ACF in Oxygen

    In the WPDevDesign Facebook group a user asked: A client wants to show specific woocommerce products attached to the specific product category archive in the sidebar,for example,there is a product category as CAR SIDE MIRRORS,and he have some products as services that provide a full installation, finish, only mirror change etc,Now he wants to show…

  • How to set the WP Query Tag Parameter to Current Page Slug in Oxygen

    How to set the WP Query Tag Parameter to Current Page Slug in Oxygen

    In the Oxygen Facebook group a user asks: Hi guys, I’m trying to recreate this situation. I have two pages, “Color”” and “Names” and I created a dedicated template for these pages where I applied a Repeater.I would like that the Repeater shows posts tagged “color” if the visited page is Color and posts tagged…

  • Filtering posts by comparing user email with User-type ACF field’s value in Oxygen

    This members-only tutorial provides the steps to filter posts in Oxygen’s Easy Posts or a Repeater to only those for which the user-type of field’s value matches with the currently logged-in user. This isn’t as straightforward as it looks because it is not possible to compare (user) objects with post meta querying in WordPress. This…

  • Past Events in Oxygen

    This members-only tutorial provides the steps to display past or old events in Oxygen. Note: For future or upcoming events, follow this tutorial. While the tutorial uses The Events Calendar plugin, it will also work in the scenario of registering your own event CPT with the associated start_date custom field using a plugin like ACF/Meta…

  • Advanced Queries in Oxygen

    Advanced Queries in Oxygen

    This tutorial shows two different methods for running advanced WordPress Queries when using Oxygen. Method 1: Using Advanced WP Query option of Easy Posts / Repeater Beginning from v3.8 Alpha 1, Oxygen comes with advanced option in the WP Query settings of Easy Posts and Repeater components. This allows us to build complex queries without…

Got any book recommendations?