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.
ve 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 dont 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);
// 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.
You must be logged in to reply to this topic.
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!
The new features in ACF 6.1 mean we’ve nearly doubled the number of translatable strings, and we need help translating them into your language. See how translations are progressing and how you can help at the link below. https://t.co/TkEc2Exd6U— Advanced Custom Fields (@wp_acf) May 17, 2023
© 2023 Advanced Custom Fields.