Skip to content

eli5wp

  • code snippets

woo change number of products per page

June 14, 2021 by emily sparkle
// Display 2 products per page. Goes in functions.php
add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 2;' ), 20 );

Categories code snippets, woocommerce
Post navigation
woo change products per row
woo change order status on payment

categories

  • code snippets (57)
    • admin (8)
    • child theme (1)
    • css (9)
    • elementor (1)
    • generatepress (10)
    • htaccess (4)
    • woocommerce (17)
    • wordpress (15)
  • links (4)

topics

admin email cache chrome only comments exclude font awesome google analytics google fonts hacky optimization posts reset responsive shortcode text wp-show-posts

recent

  • woocommerce button color control
  • // GeneratePress Search Box Clear
  • Google API Console
  • DKIM Authentication
  • dreamhost cache settings
© 2022 ASPIRE