: How can I use pagination in Woocommerce with a list of known product IDs? when I click to a product tag in woocommerce (example: cats), it goes to the landing page (mysite.com/product-tag/cats/)
when I click to a product tag in woocommerce (example: cats), it goes to the landing page (mysite.com/product-tag/cats/) which uses template (product-archieve.php), and that template creates a products page with pagination.
I have examined contents of product-archieve.php but I couldn't figure out how it works, by checking the code.
I have an array of product ids, and I want to list my products with same kind of pagination, How can I achieve this?
More posts by @Dunderdale272
1 Comments
Sorted by latest first Latest Oldest Best
Display product categories loop
array(
'number' => 'null',
'orderby' => 'title',
'order' => 'ASC',
'columns' => '20',
'hide_empty' => '1',
'parent' => '',
'ids' => ''
)
The number field is used to display the number of products and the ids field is to tell the shortcode which categories to display.
[product_categories number="12" parent="0"]
Set ids to a comma separated list of category IDs to only show those.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.