Hi Guys – The Blog Posts elements on my site are suddenly displaying all posts in Ascending Order instead of Descending. I have isolated ECP as the problem plugin – in that if I disable all plugins the Orderby function behaves correctly – and when ONLY ECP plugin is active, the problem returns.
I notice other users reporting similar issues in the last couple of days.
Enfold / WP / Plugins all latest versions. Also just did a clean install of latest Enfold.
I’m also using the blog posts element to display Events Calendar posts elsewhere on the site and they are pulling in those posts in the correct order.
Also I’m using the magzine element to display normal posts, and they are displaying in the correct ‘descending’ order.
Many thanks!
Further info… (see private reply)
Hey!
Thank you for using Enfold.
Please add this in the functions.php file to alter the query of the magazine items:
add_filter('avf_magazine_entries_query', 'avf_magazine_entries_custom_query');
function avf_magazine_entries_custom_query ( $query ) {
$query['orderby'] = 'date';
$query['order'] = 'DESC';
return $query;
}
Adjust the values if necessary.
Regards,
Ismael