• Danmotlagh

    (@danmotlagh)


    Hi all,
    I have been looking for a solution to change the number of product per page for the pas 2 weeks and unfortunately couldn’t find an answer anywhere. These are the solutions offered everywhere, but belongs to the posts from 2 years ago:

    The code I’ve been trying on functions.php (among many others) is:

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

    It hasn’t worked. I’ve also tried to change the number of posts under Settings>Reading. No luck there.

    So, please do not offer the same solutions. I would really appreciate if some could help here. Thanks!

    Best,
    Dan

  • The topic ‘Please Help!!! Struggling with number of products per page for the past 2 weeks.’ is closed to new replies.