theme and plugin sync
This commit is contained in:
17
includes/back-end/query_adjustments.php
Normal file
17
includes/back-end/query_adjustments.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Query Adjustments.
|
||||
*
|
||||
* @package ThemeStarter
|
||||
*/
|
||||
|
||||
function themeStarter_adjust_queries($query)
|
||||
{
|
||||
|
||||
// Search Page Query Adjustment
|
||||
if ($query->is_search()) {
|
||||
$query->set('posts_per_page', '-1');
|
||||
$query->set('order', 'ASC');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user