In my wordpress website I have multiple custom fields under post type 'home_decor', using the below query returns two field 'post id' and 'hd_product_description'. Currently, I am using this query to export fields one by one and then vlookup by post id. I have 7 fields in total, can someone help me with the SQL query that will return all seven columns from wp_postmeta. I have to export data from time to time and its become a long process.
SELECT * FROM `wp_postmeta` WHERE `meta_key` = 'product_description'
post id product_description retail_price sale_price product_sku product_name
------- ------------------- ------------ ---------- ----------- ------------
1245 about the product $125 $115 1245alt furniture