I am using Enfold
Is there a way to list my post in Alphabetical Order?
see this page
http://icf-pittsburgh.org/category/coaching/academic/
the names on this page are not in alphabetical order. Can that be done?
Hey fixedopsinsight!
Thank you for using the theme!
Please add this on functions.php:
add_filter('avia_blog_post_query','avia_modify_blog_post_query');
function avia_modify_blog_post_query( $query)
{
$query['orderby'] = 'name';
$query['order'] = 'ASC';
return $query;
}
You can look for more order parameters here: http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters
Best regards,
Ismael
thank you for your code. does it matter where I put it in my functions.php file?
– joe
Hi!
Please find following lines
/*
* load some frontend functions in folder include:
*/
and add the code right above it
Cheers!
Yigit
Great job, this is fixed and looks great!