WordPress.org

Forums

WooCommerce - excelling eCommerce
How To Add WooCommerce Pagination? (1 post)

  1. visualxl
    Member
    Posted 1 year ago #

    Hi,

    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 );

    Kindly advice.

    https://wordpress.org/plugins/woocommerce/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic