The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] Only showing 5 products per page (5 posts)

  1. littlebizonline
    Posted 3 years ago #

    I have set up a Woocommerce store and while the categories are showing up fine, all my product pages are limited to 5 products per page (before pagination). This is a problem because it is 4 products on the top row, and then one underneath product #1. Therefore customers think there are only 5 products in the category and it isn't obvious to click to the next page. I would love to change this to 8 or 12 per page.
    So far I have tried:
    - changing the number of blogs shown in the Settings>Reading section.
    - changing the wp-content/themes/yourtheme/functions.php to include the below code:

    // Display 24 products per page. Goes in functions.php
    add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 24;' ), 20 );

    So far no success. If anyone can help, it would be greatly appreciated.
    The theme of this site is Modest (Elegant themes) - and it is what the client wants to keep...




  2. Roy Ho
    Posted 3 years ago #

    From what I remember Elegant themes have their own post per page thing...Look thoroughly in the theme settings...

  3. littlebizonline
    Posted 3 years ago #

    Thanks for the quick reply.
    Could you please clarify if you mean in the Appearance>Theme Options, or if you are referring to accessing the php files?
    Anything else you can remember to point me in the right direction would be very helpful :)

  4. littlebizonline
    Posted 3 years ago #

    ah I found it - legend thank you!!

    For anyone else - it is in the Appearance>Theme Options>General settings tab


  5. lanhub
    Posted 2 years ago #

    This issue has been bugging me all day. Thanks Roy!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic