progress with linking logic
This commit is contained in:
11
includes/back-end/query_adjustments.php
Normal file
11
includes/back-end/query_adjustments.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
function themeStarter_adjust_queries($query)
|
||||
{
|
||||
|
||||
// Search Archive Query Adjustment
|
||||
if ($query->is_search()) {
|
||||
$query->set('posts_per_page', '-1');
|
||||
$query->set('order', 'ASC');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user