How To Add WooCommerce Pagination?
First of all, I am not referring to pagination on the ‘Shop’ page. I can add pagination to the ‘shop’ page pretty easily but that is not what I want.
I am displaying the products on a horizontal tab that suppose to show ‘all products’, ‘new items’, ‘bestseller’. However, there is no way I can add the pagination to that display right now.
I am displaying the products through this short code:
[product_category category="watches" per_page="9"]
As you can see, I limit it to display 9 products per page. Kindly let me know whether if i am missing something or not in order to enable pagination.
On the ‘shop’ page, I add pagination to the codes below, added to functions.php
add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 9;' ), 20 );
- The topic ‘How To Add WooCommerce Pagination?’ is closed to new replies.