• Hey all.

    Can anyone tell me how posts are linked to categories in the database? There’s a post_category field but it’s set to 0 for all posts, and I can see how else it knows which posts are in each category.

    Thanks

    – Jim.

Viewing 1 replies (of 1 total)
  • The post_category field is left over from the early days of WordPress, where posts could only ilve in a single category.

    The post2cat table contains the correlation post ID to category ID.

Viewing 1 replies (of 1 total)
  • The topic ‘How are posts linked to categories in the database?’ is closed to new replies.