Home › Forums › General Issues › Pre get Posts Show posts first if has acf value › Reply To: Pre get Posts Show posts first if has acf value
In order to order posts by a true/false field the field must exist before any posts are created. If you create the field later, after posts have been created, then you must update every post because the posts that existed prior to the existence o a field will not have a value set in the db for that field. You cannot order posts by a value that does not exist and you will only get posts that have a value for the field set.
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.