Wht different tables for post and postmeta (2 posts)

  1. etrader
    Posted 5 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
    Posted 5 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