Initial commit
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)
|
||||
{
|
||||
|
||||
// Projects Archive Query Adjustment
|
||||
if (!is_admin() and is_post_type_archive('project') and $query->is_main_query()) {
|
||||
$query->set('posts_per_page', '8');
|
||||
$query->set('order', 'ASC');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user