WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Where are Pages in the database, wp-post table? (5 posts)

  1. kmessinger
    Volunteer Moderator
    Posted 5 years ago #

    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?

  2. MichaelH
    Member
    Posted 5 years ago #

    Records in wp_posts with a post_type = 'page' are the pages, assuming you means Pages.

  3. kmessinger
    Volunteer Moderator
    Posted 5 years ago #

    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.

  4. MichaelH
    Member
    Posted 5 years ago #

    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.

  5. kmessinger
    Volunteer Moderator
    Posted 5 years ago #

    Thank you. Found the Pages.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.