Support

Account

Home Forums General Issues Howto Inject Category Slug into get_field Reply To: Howto Inject Category Slug into get_field

  • I just looked at a site I have to testing WooCommerce.

    The taxonomy they use is “product_cat”

    to get the categories you would use

    
    $categories = get_the_terms($post_id, 'product_cat');

    `