Home › Forums › Front-end Issues › I can`t make field visible in fronend.
I can`t make field visible in fronend.
I decided to put product attributes at the categoru thumbnail.
Ive entered needed fields, entered location, the category. They have appeared at the backend of category. Then i chose needed atributes. After that i put code in right template? but nothing have appeared. Pls check screens? i don
t know what to do. Sorry for my english.
Pls help me with my problem? thank u in advance.
to display field from a term you need to supply the term in your code that would mean something like this
// get a field value
$value = get_field('field name', $category);
or this
// display a field value
the_field()'field name', $category);;
Tks for the answer. Second variant works, but it shows only id of the attribute, but not the value. In the field editor i chose thermin object, but not id. Where is the mistake?
Tks for the answer in advance.
Sorry, but I can’t tell what type of field that is by looking at it. Some field types need more complicated coding than the_field()
There is a whole section of documentation on the different field types https://www.advancedcustomfields.com/resources/#field-types
Thank you for your help. As i said, this is taxonomy field (attributes), but your code helps to show at the frontend the ID of attribute, but not it`s value.
And i can`t manage this question.
The topic ‘I can`t make field visible in fronend.’ is closed to new replies.
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.