Changing the order of the portfolio to descending. The topics are in ascending order and want you to be the most recent first.
Changing the order of the portfolio to descending
2 posts from 2 voices-
Posted 8 months ago #
-
Hi,
Open includes > helper-template-logic.php and find this code
//if we find categories perform complex query, otherwise simple one if(isset($terms[0]) && !empty($terms[0]) && !is_null($terms[0]) && $terms[0] != "null") { $avia_config['new_query'] = array( 'orderby' => 'ID', 'order' => 'ASC', 'paged' => get_query_var( 'paged' ), 'posts_per_page' => $itemcount, 'tax_query' => array( array( 'taxonomy' => 'portfolio_entries', 'field' => 'id', 'terms' => $terms, 'operator' => 'IN'))); } else { $avia_config['new_query'] = array( 'paged' => get_query_var( 'paged' ), 'posts_per_page' => $itemcount, 'post_type' => 'portfolio'); }Change 'order' => 'ASC', to DESC. You should also add the parameter on the else statement if you don't have any category. For reference you can look at this http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters.
Regards,
IsmaelPosted 8 months ago #
Reply
You must log in to post.














