WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. sureshHARDIYA
    Member
    Posted 8 months ago #

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

    http://www.technohubitgroup.com/relaxationforme/product-category/stress-mangement/
    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.

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

  2. Stuart Duff
    Member
    Posted 8 months ago #

    Hey Suresh

    https://gist.github.com/jameskoster/1601682#file-functions-php

    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
    Member
    Posted 8 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic