Let me be more specific. I've got a plugin that I've written that uses short codes. Right now, it uses a similar function to the one above to replace the short codes dynamically. I am starting to run into server resources issues, and want to permanently change the short codes to the actual output they produce.
You'll need to loop through the posts and pages in the wp_#_posts table. # being the blog id.
You could create a plugin that would do this the next time someone logs into each blog but I would just create a script that goes through all of the blogs.
Be sure the make a backup before running such a script.
Responses (3)
Member — 10th December 2009 16:47 #
Let me be more specific. I've got a plugin that I've written that uses short codes. Right now, it uses a similar function to the one above to replace the short codes dynamically. I am starting to run into server resources issues, and want to permanently change the short codes to the actual output they produce.
Thank you for any help.
Member — 10th December 2009 17:08 #
Update:
I can use the action's publish_post, and edit_post for new posts, but still do not know how to check old posts...
Brad
Erstwhile founder — 10th December 2009 17:41 #
Hiya,
You'll need to loop through the posts and pages in the wp_#_posts table. # being the blog id.
You could create a plugin that would do this the next time someone logs into each blog but I would just create a script that goes through all of the blogs.
Be sure the make a backup before running such a script.
Thanks,
Andrew
Become a member