Home › Forums › General Issues › Order by true/false field using WP_Query › Reply To: Order by true/false field using WP_Query
if anyone is searching for a solution to this issue, i had 2000 posts and found a way.
just write a php script that loads wp (outside of wp theme folder).
it should first go through groups of posts if you have to many (say grouping of 50). i did it with a url start stop var ?start=0&stop=100
you can first load the post, take the title into a var
then update the post using wp_update_post and the title from the var
it took about 10 mins to update all 2000 after each load and changing the start stop and because i am force saving the post, the acf default values for some fields were generated and saved.
plus this was with wpml translated posts as well, so it was about 3800 as some translations were missing.
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’re reaching out to our multilingual users to ask for help in translating ACF 6.1. Help make sure the latest features are available in your language here: https://t.co/TkEc2Exd6U— Advanced Custom Fields (@wp_acf) May 22, 2023
© 2023 Advanced Custom Fields.