Title: danielphiinx's Replies | WordPress.org

---

# danielphiinx

  [  ](https://wordpress.org/support/users/danielphiinx/)

 *   [Profile](https://wordpress.org/support/users/danielphiinx/)
 *   [Topics Started](https://wordpress.org/support/users/danielphiinx/topics/)
 *   [Replies Created](https://wordpress.org/support/users/danielphiinx/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/danielphiinx/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/danielphiinx/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/danielphiinx/engagements/)
 *   [Favorites](https://wordpress.org/support/users/danielphiinx/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Weird and Dangerous : ro8kfbsmag.txt](https://wordpress.org/support/topic/weird-and-dangerous-ro8kfbsmagtxt/)
 *  [danielphiinx](https://wordpress.org/support/users/danielphiinx/)
 * (@danielphiinx)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/weird-and-dangerous-ro8kfbsmagtxt/page/2/#post-645780)
 * Nevermind what i said before, I figured it out.
    If you pass the following SQL
   query to the database it should correct the pages/posts damage.
 * In SQL:
 * UPDATE `wp_posts`
    SET post_type = ‘page’ WHERE menu_order<>’0′
 * In PHP:
 * $sql = ‘UPDATE `wp_posts`‘
    . ‘ SET post_type = \’page\” . ‘ WHERE menu_order
   <>\’0\” . ‘ ‘;
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Weird and Dangerous : ro8kfbsmag.txt](https://wordpress.org/support/topic/weird-and-dangerous-ro8kfbsmagtxt/)
 *  [danielphiinx](https://wordpress.org/support/users/danielphiinx/)
 * (@danielphiinx)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/weird-and-dangerous-ro8kfbsmagtxt/#post-645779)
 * I did as you suggested, it worked. now what i need to know is, is ther anything
   besides the mysql post_type tag which differentiates pages from posts (so i could
   automate restoration)

Viewing 2 replies - 1 through 2 (of 2 total)