Can you give more detail of exactly what you need to update in the posts? The answer to your question may vary greatly depending on the exact update needed.
Thread Starter
Matt
(@webmasterifcj)
I need to update a custom field for every post that I have published.
Thanks
Thread Starter
Matt
(@webmasterifcj)
What I have done is create a custom Meta Box for the admin post page. The problem was when adding content to the field the textarea was not recognizing linebreaks. since then I have added a function add a <br /> after each line break.
In order to update every post I will need to do this manually one by one. So thats why i am asking if there would be a way to update all posts at once.
The bulk action option is not a solution for me. a new revision needs to be made for the post in order for it to reflect on the front end.
So if I understand, the text you need to update is in a custom field? If that is correct, you need to update the postmeta table meta_value for certain meta_key values. Correct?
If the update cannot be accomplished by a MySQL query, you will need to write a php module to do the updates. Is it easy to describe what your function does? Or if the function is short, just post it here?
Thread Starter
Matt
(@webmasterifcj)
You know i’m already just going into the posts 1 by 1 and just clicking update… Thanks!
OK. Please mark this topic ‘Resolved’.