I am trying to create an advanced search. So I want to grab all checkbox fields. I don’t want to display it in a post. So I just want to grab the labels of the specific field.
I am trying to make a dropdown to show the labels. So in this, it will grab auto all labels by. Is it possible?
<td><select style="height:30px;"> <option value="">Select City</option> <option value="">label 1</option> <option value="">label 2</option> <option value="">label 3</option> </select></td>
Trying the above code is causing a warning error to be thrown with my usage and I don’t understand why.
Warning: Invalid argument supplied for foreach()
You must be logged in to reply to this topic.
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!
© 2022 Advanced Custom Fields.