Support

Account

Home Forums General Issues Conditional Display of ACF Single Product Page Reply To: Conditional Display of ACF Single Product Page

  • Hi

    Please use below code. i think it will work for you.

    $id = get_the_ID();
    $queried_object = get_queried_object();
    $taxonomy = $queried_object->taxonomy;
    $term_id = $queried_object->term_id;
    $post_id = ‘product_cat_’.$term_id;

    echo get_field(‘per_round_cost’, $post_id);
    echo get_field(‘upc’, $post_id);
    echo get_field(‘caliber’, $post_id);
    echo get_field(‘bullet_weight’, $post_id);
    echo get_field(‘bullet_type’, $post_id);
    echo get_field(‘case_type’, $post_id);
    echo get_field(‘combine_reviews’, $post_id);