Home › Forums › Backend Issues (wp-admin) › Rewriting Metadata › Reply To: Rewriting Metadata
The code in your functions.php file will need to be modified to look for the $_GET value within the serialised array string.
If you look at the docs for the checkbox field, you will notice that one of the code examples hows how to filter posts via a checked value:
http://www.advancedcustomfields.com/resources/field-types/checkbox/
Changing your meta_query to use a LIKE compare as shown in the code example will correct your code.
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.