Home › Forums › General Issues › Repeater field on taxonomy help › Reply To: Repeater field on taxonomy help
Hi @shrimp144
The issue is that your if statement will never return true, but is also a bit odd.
if($docs = get_field('docs')):
This should juse be:
if($docs):
Using get_field(‘docs’) wont work, becuase you need to add the $post_id param. You have done this in the 1st half of your code, but then you forget to add it into your if statement.
That said, it doesn’t need to be in your if statement at all.
Thanks
E
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.