Last active
December 14, 2015 09:08
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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