Home › Forums › Backend Issues (wp-admin) › Add custom column and make it sortable › Reply To: Add custom column and make it sortable
Hi @torbjorn_s
Your query is filtering the posts to those that have a value for the control_reminders_enabled meta_key.
If your posts does not yet have a value for this, then your query will not work.
Perhaps you need to also add in the ability to treat posts without a value as a value of 0
I’m not 100% sure how to do this, but chances are someone on stackexcahnge / google has already written / shared the code.
Good luck
Cheers
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.