Support » Plugin: WooCommerce » number of products on page – can't change

Viewing 15 replies - 1 through 15 (of 18 total)
  • add_filter(‘loop_shop_per_page’, ‘show_products_per_page );

    function show_products_per_page() {

    return 20;


    Change the 20 to your desired amount…
    this should be placed in your themes functions.php

    please help, i don’t speak PHP.

    Where do i paste it? before something? after something?




    in your WordPress admin, in the appearance -> editor… go to your functions.php file…

    at the bottom before the final ?>

    copy and paste what i have put above.

    i do it and get an error:

    The website encountered an error while retrieving (my url)/wp-admin/theme-editor.php?file=functions.php&theme=twentytwelve&scrollto=31488&updated=true. It may be down for maintenance or configured incorrectly.

    sorry, thanks.

    besides, i now see only part of the products, why no arrow or numbering to see the rest?


    can you provide a url to your website?

    it’s a tee shirts shop:

    it’s under construction

    Try adding the code again

    add_filter('loop_shop_per_page', 'show_products_per_page' );
    function show_products_per_page() {
    return 20;



    great, thanks.

    wait, one more thing…

    i currently have 70 products in the shop.
    i write 99, BUT only see 32 products.

    Without the change to functions.php i also saw only 32 products.
    how do i enable 99 ?

    the script enables me to show less than 32, but not more than 32.

    is there a limit somewhere?


    AND, if i write 99, the links to next and back disapper.

    see the site now, the script says 99, i only see 32 and no links to next.


    possibly because there is only 70 products? try limiting it to 60.

    in the script i wrote the exact number of products.

    it still shows only 32 (as you can see) and no numbering or arrows


    hmmm, very strange. just tested this on my install and i can see in excess on 32 products in my list :/ and it works fine.

    Could be a theme issue, do you have any snippets for anything else that could be conflicting?

    What version are you using?

    wp 3.5
    woocommerce 1.6.6

    it seems as if maybe the page stops loading?

    all the internal pages show at the buttom some link to WP (it’s a theme without a footer) (twenty twelve).
    and a link to another plugin i use.

    On the homepage (“shop” page) i don’t see the links on the buttom.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘number of products on page – can't change’ is closed to new replies.