Title: Update all posts using php or function?
Last modified: August 20, 2016

---

# Update all posts using php or function?

 *  [houseofcakes](https://wordpress.org/support/users/houseofcakes/)
 * (@houseofcakes)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/update-all-posts-using-php-or-function/)
 * Hi,
    So I have a very strange problem. In WP 3.2 something happened with TinyMCE
   where a fatal error came up that said the editor function was not defined and
   wouldn’t show the post content block. Nothing had been touched and I couldn’t
   find anything different than a backup that I had that was working. So, I upgraded
   to WP 3.5. That seemed to fix the editor issue and the post content block shows
   up now. However, it has killed some of the auto line breaks that we had in the
   posts (We are using the “HTML”-now-“Text” block for editing). We were using the
   wpautop plug-in so I disabled that and installed the TinyMCE Advanced. It works
   fine for new posts (puts the breaks in automatically), but for all the old posts,
   the problem remains where it doesn’t “see” the natural line break. HOWEVER, if
   you go into a post where this is occuring, the <p>/<break> tags are there in 
   the “Text” view, so if you manually click “Update” it fixes the post.
 * The issue is that I have like 300+ entries. Is there a way to do this in the 
   db using phpmyadmin or a wp_update function? It’s an annoying issue that should
   be solvable, but I haven’t found any clear direction as to how to (virtually)
   open every post individually and click “Update” so we get our line breaks back.
   None of the content needs to be changed.
 * Thanks!
    Karen

Viewing 1 replies (of 1 total)

 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/update-all-posts-using-php-or-function/#post-3365324)
 * I have not tested this, but you might be able to use ‘Bulk Actions’ to change
   many posts at a time.
    - Go to Admin->Posts->All Posts
    - Click on ‘Screen Options’ at top right.
    - Enter 100 in the ‘Posts’ box.
    - Click ‘Apply’.
    - Click the box next to ‘Title’ to select all Posts on the page.
    - Select ‘Edit’ in the ‘Bulk Actions’ box.
    - Click ‘Apply’.
    - Click ‘Update’.

Viewing 1 replies (of 1 total)

The topic ‘Update all posts using php or function?’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/update-all-posts-using-php-or-function/#post-3365324)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
