WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[resolved] Shop and Category only show 5 products (4 posts)

  1. angelostudios
    Member
    Posted 1 year ago #

    I know this has been asked and answered, but the solutions are not working for me and I am hoping someone else has some advice.

    Currently we're only able to see 5 products on a page.

    I've tried to set my WP Settings > Reading to show 24 blog posts.

    I've tried to put the following code in my themes functions.php:

    // Display 24 products per page
    add_filter('loop_shop_per_page', create_function('$cols', 'return 24;'));

    I've uninstalled the WP Page Nav plugin in case it was conflicting.

    I also created a new page and put the following shortcode in:
    [recent_products per_page="12" columns="4"]

    Even this only shows 5 products on each page.

    So far, nothing is making this work. I'm going insane trying to figure this out.

    Any help would be greatly appreciated!!

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

  2. royho
    Member
    Posted 1 year ago #

    Perhaps your theme is overriding your settings? Try it with default 2011 theme.

  3. angelostudios
    Member
    Posted 1 year ago #

    That is possible. Since the site is being announced to thousands today, I can't switch the them. Where could I look in the theme to see if it's being overridden?

    It's not in the theme functions.php, but there is an include file so I'll start there.

  4. angelostudios
    Member
    Posted 1 year ago #

    Thanks for the help on this... Yes, my theme had a hidden function that was limiting the output to 5 products. Once I removed that custom code, everything showed up.

    Finally!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic