Home › Forums › Front-end Issues › Get Post/Pages based on ACF checkbox › Reply To: Get Post/Pages based on ACF checkbox
Hi @astrixoblix
Just to clarify, you are loading the current checkbox value via get_field, then you want to find all other posts which have exactly the same checkbox values? Or are you finding any posts which have any of the checkbox values ticked?
I think you need to dynamicaly generate the meta_query args array by loop through your checkbox values and appending to the meta_query args array.
Does that help?
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.