Home Forums General Issues Woocommerce Brands – Taxonomy & Checkbox Reply To: Woocommerce Brands – Taxonomy & Checkbox

  • Hi @tony-hardy

    The link I gave you is using the taxonomy field type instead of the checkbox. I believe you don’t need to use that line of code for the checkbox field type. Maybe something like this:

    // Loop through all terms
    foreach ($terms as $term){ 
        // Get the featured value. Please check:
    	$term_featured = get_field('featured', $term); 
        //Check if it's featured
            // Add this term object to an array. Don't forget to initialize
            // it first.
            $matching_terms[] = $term;

    I hope this helps 🙂