Skip to content

Instantly share code, notes, and snippets.

@renanlara
Created April 17, 2013 14:58
Show Gist options
  • Save renanlara/5404995 to your computer and use it in GitHub Desktop.
Save renanlara/5404995 to your computer and use it in GitHub Desktop.
Display 12 products per page.
<?php
// Display 12 products per page.
add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 12;' ), 20 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment