Support

Account

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

    https://screenpresso.com/=hKDUc

    Following is how I have implemented in Stores taxonomy php file

    https://screenpresso.com/=K6Zwg

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

    `<div><?php

    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: https://offcoupon.in/store/amazon-coupons/

    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) (https://offcoupon.in/store/foodpanda-coupons/ where it shows description of another store. This is just one incidence. It happens on almost all pages in “Category” taxonomy.