Home › Forums › Add-ons › Repeater Field › How does one target a specific row in a repeater field with sub fields › Reply To: How does one target a specific row in a repeater field with sub fields
Hi I guess I realized this after the fact…So here is what I want to be able to do:
I have a repeater field (called author) with three sub-fields (called book, title, year). There are two “rows” meaning, two entries in the repeater field group.
So something like:
Book1, Title1, Year1
Book2, Title2, Year2
I am looking to write some conditional like
if (author_id == "21") : <display the data for row 1> endif;
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 2023 ACF Annual Survey closes tomorrow! This is your last chance to complete the survey and help guide the evolution of ACF. https://t.co/0cgr9ZFOJ5— Advanced Custom Fields (@wp_acf) May 18, 2023
© 2023 Advanced Custom Fields.