WordPress.org

Support

Support » Plugins and Hacks » WooCommerce » Categories only displaying 10 products

Categories only displaying 10 products

Viewing 5 replies - 1 through 5 (of 5 total)
  • Roy Ho

    @splashingpixelscom

    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.

    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”

    thanks people, I went with scattered810 suggestion.

    This works fine.

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

    Roy Ho

    @splashingpixelscom

    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.

    I am not currently using the blog on the site.

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

    Thanks again

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Categories only displaying 10 products’ is closed to new replies.
Skip to toolbar