WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Categories only displaying 10 products (6 posts)

  1. rikardo85
    Member
    Posted 1 year ago #

    Hello,

    Once selecting a category a list of the products appears.
    There are only 10 products showing.

    Does anyone know how to display all products from the category and not be limited to 10?

    Thanks

    http://wordpress.org/extend/plugins/woocommerce/

  2. Roy Ho
    Member
    Posted 1 year ago #

    Put this in your functions.php file of your theme.

    add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 24;' ), 20 );

    Change "24" to however many items you want to show.

  3. scattered810
    Member
    Posted 1 year ago #

    If the above does not work for you, it may be a setting under reading.

    SETTINGS >> READING

    Change the number "10" in "Blog pages show at most "10" posts"

  4. rikardo85
    Member
    Posted 1 year ago #

    thanks people, I went with scattered810 suggestion.

    This works fine.

    A bit weird that the plugin will use the blog post settings for this.

  5. Roy Ho
    Member
    Posted 1 year ago #

    It is not advisable to set that via what scattered810 stated. As then you REAL blog would be subjected to the same number of posts...

    Unless you don't have a need for the blog...But in either case use the code I provided as it is the proper way to do it.

  6. rikardo85
    Member
    Posted 1 year ago #

    I am not currently using the blog on the site.

    If I do add a blog I will add the code supplied.

    Thanks again

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic