Answer the question
In order to leave comments, you need to log in
How to display Woocomerce fields anywhere on the site?
I have a layout + WP with Woocomerce plugin. There I want to create a category "Directory".
Next, I just want to take the category from Woocomerce and just output it with some method like WP_Query for my layout. Loop through and get the data from the product category. How can I do it?
Answer the question
In order to leave comments, you need to log in
Products in woocommerce is just a custom post type product. Similarly, categories are a custom taxonomy for a custom post type. Just take the post type, paste it into wp_query and do whatever you want.
Woocommerce also has a good set of shortcodes with a bunch of settings that can also be used anywhere
https://docs.woocommerce.com/document/woocommerce-...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question