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 @john.marcello
Sorry, but your last comment has baffle me as to how I can help. You seem to understand the basics of a conditional statement:
if (author_id == "21") :
<display the data for row 1>
endif;
Perhaps you don’t understand how to get the sub field value to compare against? You can use a function called get_sub_field to do this.
Please read the docs to learn more
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.