Skip to content

Instantly share code, notes, and snippets.

@JoeHana
Last active December 14, 2015 09:08
Show Gist options
  • Save JoeHana/5062218 to your computer and use it in GitHub Desktop.
Save JoeHana/5062218 to your computer and use it in GitHub Desktop.
This code modifies the numbers in the selection for the search results (search form) - originally they're set to 10,20,30,40,50,60.
/*
* Custom Numbers for Search Results
*/
add_filter('ts_nr_options', 'custom_nr_options');
function custom_nr_options($args) {
$args = array('12','24','36','48','60');
return $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment