Home Forums Front-end Issues ACF Front End Display is Wierd Reply To: ACF Front End Display is Wierd

  • Hi,

    Sorry for not getting back earlier. Following is the way I set up acf on my Store taxonomy

    Following is how I have implemented in Stores taxonomy php file

    I am also copy-pasting the code here for your perusal


    global $post;

    // load all ‘category’ terms for the post
    $terms = get_the_terms($post->ID, ‘stores’);

    // we will use the first term to load ACF data from
    if( !empty($terms) )
    $term = array_pop($terms);

    $custom_field = get_field(‘description’, $term );
    echo $custom_field;
    // do something with $custom_field

    ?></div> `

    The code on “Store” taxonomy is as shown above. The output can be seen here:

    Please check the bottom section of the above page. Of course, it is working well for Amazon coupon store but it doesn’t work well on Foodpanda store) ( where it shows description of another store. This is just one incidence. It happens on almost all pages in “Category” taxonomy.