Display all the products under category in non-woocommerce theme (3 posts)

  1. sureshHARDIYA
    Posted 2 years ago #

    Hello, I have used non-woocommere theme, and used woocommerce plugin to display the products. I have pagination after displaying 6 products,

    I have tried to increase the no of posts visible from setting wordpress dashboard, also tried using

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

    None of them worked. Please help me how to display all the products or say 10 products in each category before using pagination.


  2. Stuart Duff
    Posted 2 years ago #

    Hey Suresh


    This is the correct way to change the number of products per page Suresh and if it's not working for you you may have some code that's interfering with this on your site or you have maybe made an error when adding the code to your themes functions.php file.

  3. sureshHARDIYA
    Posted 2 years ago #

    I have added the code exactly in the same manner, it is said. but it does not seem to work on mine. What could be other possible solution to that problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic