Support

Account

Home Forums General Issues Show field if it match to

Solving

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 you add something to ACF to do this natively? 🙂

  • 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/

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Show field if it match to’ is closed to new replies.