Home › Forums › General Issues › Show field if it match to

In my option page I created a repeater field with 2 fields. A taxonomy one and a description. I would like to show these in taxonomy pages, obviously, only if tax-id coincides with the current taxonomy page. I need to do this to have a full “dynamic” management of this texts. Is it possible? How can i do? 🙁
This is my array (attached). I need to “compare” id_tassonomia_prodotto with current ($current_parent_id = get_queried_object()->term_id;) taxonomy ID. How can I do this to print only the desired description (descrizione_prodotto) 🙁

Hi,
How familiar are you with looping through an array and matching a value?
Your above code looks to have successfully found the $current_parent_id.
Perhaps you should look over the code for the repeater field, learn how to loop through the rows of data, and use a simple if statement to match the row to the current taxonomy ID.


Will I add a function to allow you to search a repeater field for a specific row value?
No, this is a bit out of scope for the ACF plugin
Does this solve your question?
its a great way
RATUPOKER88.COM JUDI TEXAS HOLDEM POKER ONLINE ASLI TERPERCAYA DAN TERBESAR INDONESIA
http://lintasbola.smeagol.web.id/ratupoker88-com-judi-texas-holdem-poker-online-asli-terpercaya-dan-terbesar-indonesia/
RATUPOKER88.COM JUDI TEXAS HOLDEM POKER ONLINE ASLI TERPERCAYA DAN TERBESAR INDONESIA
http://davids.tulisan.web.id/ratupoker88-com/
The topic ‘Show field if it match to’ 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.