I’m working on a Woocommerce website and created a new taxonomy activity
. I’ve added that taxonomy to the post type Product.
So a Product can have one of the following activity
:
To show all the Products, I’ve created taxonomy-activity.php
which already shows all the products that have an activity taxonomy.
But I have to have all the Products with taxonomy Guided tours on a seperate page. And all the others on the other page. So there will be 2 pages: One page will be called Guided tours which only shows the guided tours and the other is called Activities.
Is it correct to do this with the taxonomy-{slug}.php or should I create a new page. For example: page-guidedtours.php
which loops through all the Product with Guided tours taxonomy. And the other page page-activities.php
which loops through all the Products without Guided tours taxonomy.
Sidenote: I’m using the plugin FacetWP in order to show the Product and created filters. So the query is created with the plugin and then the list of products in shown with a shortcode.
My current query is:
I’m thinking about created 2 Facets. One facet that shows the Guided tours. So in this case I have to add the term Guided tours to the query. And then other facet without the term Guided tours.
- Hiện tại chúng tôi có hơn 25 nghìn bài văn mẫu các thể loại.
- Kho tài liệu, đề thi học sinh giỏi các lớp vô cùng phong phú.
- Mỗi ngày cập nhật hơn 100 đề thi chất lượng từ các website bán tài liệu lớn.
Tải đề thi VIP với giá siêu rẻ tại Vip.Dethihsg247.Com