A) When i add this to the archive.php it is ordering the posts after slug name
get_header();
$posts = query_posts($query_string . ‘&orderby=name&order=asc&posts_per_page=-1’);
But this is not update proofed!
May also possible to hook into the header via the functions.php:
get_header();
add_filter(‘avia_blog_post_query’, ‘avia_blog_post_query_mod’);
function avia_blog_post_query_mod( $query ) {
$query[‘orderby’] = ‘name’;
$query[‘order’] = ‘ASC’;
return $query;
}
__
B) How can i change order of the blog entry shortcode:
[av_blog blog_type='posts' categories='28' link='category' blog_style='blog-grid' columns='1' contents='no' content_length='excerpt' preview_mode='custom' image_size='large' items='4' offset='no_duplicates' paginate='no' conditional='']
Linked page below
Also the insering of this code does not do the job! Because the filter in the menu is not filtering anymore. just viewing all the post entries.
$posts = query_posts($query_string . ‘&orderby=name&order=asc&posts_per_page=-1’);
I need to talk to the search and filter plugin developer parallel and refere to this post.
sorry fixed by the plugin author.