Mindblown: a blog about philosophy.

  • Custom Taxonomy Terms and Posts Output in WordPress

    Custom Taxonomy Terms and Posts Output in WordPress

    This members-only tutorial provides the code for looping through terms of a given taxonomy and outputting links to term archives for terms that have more than 1 item (post) and to the post permalink for terms that have 1 item in a single grid. Background: Note: This is not Oxygen specific and the code can…

  • Getting WooCommerce Product Categories of a specified parent term in WordPress

    Getting WooCommerce Product Categories of a specified parent term in WordPress

    In the WPDevDesign Facebook group a user asks: …and wanted to loop through and always show in the footer: All WooCommerce Category Images of all the Sub Categories of a certain Top Category and have each category image, link to its category…. This members-only tutorial provides the code for getting the child product categories of…

  • Taxonomy Terms List in WordPress

    Taxonomy Terms List in WordPress

    Looking to show all the terms of a given taxonomy as an unordered list in WordPress? The code snippet below will output a list of term names linking to their corresponding term archives and the number of posts in that term of the specified taxonomy. Replace product_cat in the above with the name of your…

  • Taxonomy Term Archives showing Entries Grouped By Another Taxonomy

    Taxonomy Term Archives showing Entries Grouped By Another Taxonomy

    This members-only tutorial provides the steps to display products on industry taxonomy term archives grouped by focus_area, another taxonomy whilst using Splide to arrange the products as a slider in Oxygen. We shall get all the focus areas, loop through them, and for each write a couple of custom queries for pulling products that have…

  • Related Taxonomy Terms via ACF Taxonomy Field

    Related Taxonomy Terms via ACF Taxonomy Field

    In a recent project I worked on, the requirement was to loop through all the industries and for each industry show related markets and focus areas. This members-only tutorial provides the details of setting this up. CPT: product Taxonomies: industry market focus_area Custom fields for industry taxonomy: industry_image (Image-type with Image ID return format) markets_selector…

  • Filtering Taxonomy Terms by a Custom Field using Isotope

    Filtering Taxonomy Terms by a Custom Field using Isotope

    This members-only tutorial provides the steps to filter terms of a specified taxonomy by a Checkbox-type of custom ACF field using Isotope. We shall create a field group with location set to a “Series” taxonomy of a “Lessons” CPT. add a Checkbox-type “Genres” custom field in the field group having a few value : label…

  • WooCommerce Product Category Carousel in Oxygen

    WooCommerce Product Category Carousel in Oxygen

    This members-only tutorial provides the steps to output WooCommerce product categories as a carousel using Flickity. Screenshot The tutorial can be applied for showing any taxonomy’s terms. Here we are using product_cat. in any WordPress site for showing a slider instead of a carousel Step 1 Install and activate My Custom Functionality plugin. Connect to…

  • How to show x number of posts from each taxonomy term in WordPress

    How to show x number of posts from each taxonomy term in WordPress

    By default the output of a WordPress query is to show a specific number of or all posts that belong to all the categories (or custom taxonomies). What if you want to output say only a maximum of 3 portfolio CPT items from each portfolio_category? For this one approach is to: get all the terms…

  • Categories Grid in Oxygen

    Categories Grid in Oxygen

    This members-only tutorial provides the steps to display a grid of top-level categories linking to their corresponding category archives on a static Page. We shall write code in Oxygen’s Code Block component that gets all the categories, loops through them one by one and outputs the linked category image, linked title and description, then use…

  • Taxonomy Terms Grid in Oxygen

    Taxonomy Terms Grid in Oxygen

    This members-only tutorial provides the steps to display a grid of taxonomy terms with term image and title appearing for each item in the grid when using Oxygen. We shall set each item to link to the term archive page. Update on 13 Mar 2022: Added instructions to set this up for WooCommerce product categories.…

Got any book recommendations?