I know WordPress stores all post data in 'wp_posts'
table. But here WordPress not define any category id or reference related with it.
Please let me know, how ‘wp_posts’ table find out exact category? Please explain me in details.
I know WordPress stores all post data in 'wp_posts'
table. But here WordPress not define any category id or reference related with it.
Please let me know, how ‘wp_posts’ table find out exact category? Please explain me in details.
You must be logged in to post a comment.
See the Codex’s WordPress Taxonomy documentation.
WordPress 2.3 replaced the previous categories, post2cat, and link2cat tables with three a more flexible set of taxonomy tables.
wp_terms– holds the basic information about single terms.
wp_term_taxonomy – defines the taxonomy – either tag, category, or custom taxonomy
wp_term_relationships – contains the many-to-many relationship between WordPress objects such as posts or links to a term_taxonomy_id from the term_taxonomy table.