PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, August 26, 2022

[FIXED] Where are categories and products stored in Wordpress?

 August 26, 2022     wordpress     No comments   

Issue

I am new to Wordpress.

I am studying an already made site which has WooCommerce plugin.

Well, please see this image which shows a product list:

enter image description here

I have spent some hours trying to find where products and categoríes are stored. There is not a product table neither category table neither a database table with similar names.

I have also exported the whole database in SQL format and then trying to find the product name or category name, but I could not find them.

Any one can point me to the right direction?

Thanks Jaime


Solution

Woocommerce products are stored in wp_posts table with post_type column value as "product" and "product_variation".

Any additional product data will be stored in the wp_postmeta table.

The product categories and tags both are stored in the wp_terms table and can be identified as a category or tag based on its data in the wp_term_taxonomy table where it stores the product_cat value in the "taxonomy" column.



Answered By - Vinay Jain
Answer Checked By - David Marino (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing