WordPress.org

Ready to get started?Download WordPress

Forums

Wht different tables for post and postmeta (2 posts)

  1. etrader
    Member
    Posted 3 years ago #

    Since postmeta contains corresponding data for post; why wordpress has two tables of wp_post and wp_postmeta? why not mixing them to store every data about a post within one single row?

  2. popper
    Member
    Posted 3 years ago #

    One reason is because you don't know a priori how many fields of meta a given post will have, since users and plugins both can create additional meta fields for a post, using custom fields and whatnot.

Topic Closed

This topic has been closed to new replies.

About this Topic