Home › Forums › ACF PRO › Once checked, always true › Reply To: Once checked, always true
A true/false field saves either a 1 or 0. Add the value you want to select by to your meta_query argument. It would probably also be a good idea to set the type to numeric.
'meta_query' => array(
array(
'key' => 'featured-home',
'value' => 1,
'type' => 'numeric',
)
)
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.