Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #772117

    Hey guys

    I am finishing my site and I noticed that two pages that display posts are doing so with the most recently published post first. I would prefer the oldest post as that would put them in chronological order.

    It is my homepage slider

    and my special events page
    https://www.meditationinbloomington.org/category/special-events/

    I tried this code in my child theme functions file, but it didn’t have any impact!
    add_filter(‘avia_blog_post_query’, ‘avia_modify_post_grid_query_desc’);

    function avia_modify_post_grid_query_desc( $query ) {
    $query[‘orderby’] = ‘date’;
    $query[‘order’] = ‘ASC’;
    return $query;
    }

    Thanks

    #773404

    I got the categories to post in reverse order with a plugin, but the slider didn’t respond. So, I still need code for the slider. If possible, I’d like to use code in a functions or shortcode file for the category posts instead of a plugin.

    Thanks

    #773445

    Hi kelsangwangpo,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look.

    Best regards,
    Victoria

    #773486

    Thanks here are the credentials.
    Also, I disabled the plugin so you can see the ordering issue on the category page.

    #773552

    Hey!

    Those posts are set as sticky.
    Can you remove that and the posts loop sequence will return back to normal.

    Thank you

    Cheers!
    Basilis

    #773575

    Thanks Basilis
    I checked the post status in quick edit mode and they were not marked as sticky.
    I made them all sticky. No change.
    I removed sticky. Still no change.
    At present, the posts are not sticky, but not looping in the order I want. They are reversed from what I’d like.

    Sorry for the bad news. But I bet y’all have something more up your sleeves. Your support is Stellar

    #775660

    Hey team

    Just curious if there is a method to insert some code into the child theme? Is that the easiest approach. I have tried a few things and none worked.

    Thanks big time

    #775785

    Hi,

    Please use the “avia_feature_image_slider_query” filter in the functions.php file:

    add_filter('avia_feature_image_slider_query', 'avia_feature_image_slider_query_mod', 10, 1);
    function avia_feature_image_slider_query_mod($query) {
    	$query['orderby'] = 'date';
    	$query['order'] = 'ASC';
    	return $query;
    }

    // https://kriesi.at/support/topic/pinned-posts-in-enfold-blog-elements/#post-663662
    // https://kriesi.at/support/topic/image-order-on-the-feature-image-slider/#post-655965

    Best regards,
    Ismael

    #775797

    Thank you Ismael!

    That is exactly what I was going for. Is there a way I can set the categories to do the same on a category page? The page is https://www.meditationinbloomington.org/category/special-events/.

    I am trying to show people all events in the special event category. I’d like them to see the events in the order they will happen, instead of reverse order.

    Thanks again

    #776296

    Hey team
    The solution I needed was here.
    https://kriesi.at/support/topic/posts-in-reverse-order/

    Thanks for being there for support. Sometimes searching through the forum takes days, but I am glad I found an answer in there.
    This can be closed now.
    Cheers

    #777178

    Hey!

    Glad that you found a solution. Let us know if you need anything else. :)

    Cheers!
    Ismael

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.