Support

Account

Home Forums ACF PRO get value from taxonomy term Reply To: get value from taxonomy term

  • cool. this is work. would you check bellow code correct way or not, have any better way to do for this. i have more than one filed.

    <h2><?php 
     $product_cat_object = get_queried_object();
    the_field('side_box_title', 'product_cat_' . $product_cat_object->term_id);
     ?></h2>
     <?php 
     $product_cat_object2 = get_queried_object();
    the_field('side_box_content', 'product_cat_' . $product_cat_object2->term_id);
     ?>