Update all posts using Iframe
-
Hello I’m a hard time on stage is as follows:
need to update all registered posts (more than 200,000) to change the permanent link for each post, I thought of
create a plugin and it found the following code:$posts_to_update = get_posts('cat=x&showposts=1000');//Retrieve the posts you are targetting foreach ( $posts_to_update as $update_this_post ): $update_this_post->post_title = 'Post Prefix: '.$update_this_post->post_title;//The post field you are updating. wp_update_post( $update_this_post ); endforeach;
The problem is that I need to open each post it runs a javascript that takes a information to insert the link.
the only thing to do is: Open the post in an Iframe for example, and click the update button,
I am using <iframe> but I can not do a repeat loop that carry each post and
automatically actualize in PHP. I’ve been researching and saw something in javascript and ajax but as I am starting not know these languages
someone could give me an idea or an example of how to do this ???
- The topic ‘Update all posts using Iframe’ is closed to new replies.