Support

Account

Home Forums General Issues Get ACF to show on Wp-Ecommerce Page Reply To: Get ACF to show on Wp-Ecommerce Page

  • I found the solution in the examples online.

    $queried_object = get_queried_object(); 
    $taxonomy = $queried_object->taxonomy;
    $term_id = $queried_object->term_id;  
    
    // load variable for this taxonomy term (term object)
    $variable = get_field('longdesc', $queried_object);
    // load variable for this taxonomy term (term string)
    $variable = get_field('longdesc', $taxonomy . '_' . $term_id);
    echo $variable;