Mobile app version of vmapp.org
Login or Join
Dunderdale272

: 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/)

@Dunderdale272

Posted in: #Pagination #Template #Woocommerce #Wordpress

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Dunderdale272

1 Comments

Sorted by latest first Latest Oldest Best

 

@Gonzalez347

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme