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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.