Support

Account

Home Forums Front-end Issues Displaying Fields from Post Category or Subcategory Reply To: Displaying Fields from Post Category or Subcategory

  • You’ll need to set the second function parameter to ‘category-slug_2’ where ‘2’ is the term ID. So for example:

    
    the_field('test_field', 'beer_' . $term_id);
    

    would output the “test_field” value for the term with ID $term_id in the “beer” taxonomy.