Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #448923

    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

    #448969

    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

    #449135

    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

    #449138

    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

    #449146

    Wow!, your “function reverse order” code works wonderfully.

    Thanks a lot Josue!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘BLOG POSTS SORTED BY REVERSE DATE’ is closed to new replies.