I have various products (custom post type) which already have categories but I have now I have added this line to be able to add tags to the products.
‘taxonomies’ => array(‘post_tag’)
So, I have an industries section with various pages within that and for example one of them is called ‘Woodworking’. I have added the tag ‘Woodworking’ to various products and when someone visits /industry/woodworking I want those products to show up.
Is there an easy way to achieve this? I thought of perhaps using WP_Query but not sure how to create that relationship between the page name and the product tags.
Read more here:: associate custom post type with tags with specific pages