Hi,
How can I have specific blog posts show the blogs in reverse date order, i.e. to show first the older entries and then the newer ones.
Kind Regards,
Chapdes
Hey!
Try adding this at the very end of your theme / child theme functions.php file:
add_theme_support('add_avia_builder_post_type_option');
add_theme_support('avia_template_builder_custom_post_type_grid');
And use a Portfolio Grid element instead, you’ll have the option to reverse the order there.
Cheers!
Josue
Hi,
Do you mean it is not possible to show posts in reverse order in the Blog Posts?
I´ve added the above lines to the functions.php, and there was no effect in the Blog Posts whatsoever.
Regards,
Chapdes
Hi!
No, that’s one method. Try adding this code instead (functions.php):
function reverse_order($query) {
$query['order'] = "ASC";
return $query;
}
add_filter('avia_post_slide_query', 'reverse_order');
Best regards,
Josue
Wow!, your “function reverse order” code works wonderfully.
Thanks a lot Josue!