Title: Update all posts using Iframe
Last modified: August 30, 2016

---

# Update all posts using Iframe

 *  [tiagogoes](https://wordpress.org/support/users/tiagogoes/)
 * (@tiagogoes)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/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.

## Tags

 * [iframe](https://wordpress.org/support/topic-tag/iframe/)
 * [update posts](https://wordpress.org/support/topic-tag/update-posts/)

 * 0 replies
 * 1 participant
 * Last reply from: [tiagogoes](https://wordpress.org/support/users/tiagogoes/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/update-all-posts-using-iframe/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
