• Resolved shuiiz

    (@shuiiz)


    I use this code to change numbers of products displayed in pages of my shop

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

    but this code doesn’t work (the same code in other website with a different template works correctly)

    Someone can help me?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Styled Themes

    (@gejay)

    Hi there,

    We had tried using this code and it works fine at our end, please check your code on the basis of following code:
    add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 24;' ), 20 );

    WooCommerce product can be controlled from reading setting-> blog post show at most as well.

    Thanks

    Thread Starter shuiiz

    (@shuiiz)

    Thank you. I solved. There was a conflict with some plugins

    Theme Author Styled Themes

    (@gejay)

    marking resolved as per last topic reply

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change number of woocommerce products displayed per page’ is closed to new replies.