Home › Forums › General Issues › Select (value) conditional statement in repeater › Reply To: Select (value) conditional statement in repeater
Looks like you’re declaring and assigning a value to $otaname on row 5 in your snippet. But then you never actually use that variable?
Also. You use the variable $ota in your series of if-statements. The way your code is written, you’re assuming that it has a string value. But on each of the conditional statement blocks, you also output $ota[‘label’], assuming $ota is an array.
My best guess is that you’ve mixed up $ota and $otaname in your code.
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.