WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Where are Pages in the database, wp-post table?

[Resolved] Where are Pages in the database, wp-post table?

  • Moderator kmessinger

    @kmessinger

    According to the documentation I read, Pages are stored in the database under the wp-posts table. I don’t see anything labeled Pages. Are they listed under some other field name?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Records in wp_posts with a post_type = ‘page’ are the pages, assuming you means Pages.

    Moderator kmessinger

    @kmessinger

    Yes, I do mean Pages. I looked at wp-posts and while I have 24 fields, I have no fields labeled page although I do have Pages on my blog.

    What started this search was the disapperance of my About page. My other pages do show up and are editable so I must be looking at my db wrong.

    The field (or column) name is post_type.

    In that column, any Pages will have “page” for each row that is considered a Page. Posts will have the value of “post”. There will be many rows in wp_posts! And there’s even revisions and attachments in wp_posts, of course with different post_type values.

    Moderator kmessinger

    @kmessinger

    Thank you. Found the Pages.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Where are Pages in the database, wp-post table?’ is closed to new replies.
Skip to toolbar