WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm aware that WordPress stores all the post content of a multisite in the same database table and I was just wondering how it internally differentiates post content from one blog to the other?

share|improve this question
up vote 4 down vote accepted

Posts from one site are not stored in the same table as posts from another site.

Each blog on a multi site gets an ID and that ID is used to generate a separate set of tables for each site in a multisite installation.

So for example site 1 gets:

wp_posts

where as site 2 gets:

wp_1_posts

and so on:

wp_2_posts
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.