Home › Forums › Add-ons › Repeater Field › add subfield via frontend › Reply To: add subfield via frontend
Hi @littledevil
First, you can use this code to show the content of your repeater:
<pre>
<?php
print_r(get_field('books'));
?>
</pre>
Then, you can loop the returned data and check if the id or the link match or not. This comment has a good example to help you start with it: http://php.net/manual/en/function.array-search.php#91365.
Hope this helps.
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.