Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • thanks very much, changing the event setting resolved the issue :)

    actually, this didn’t resolve the issue. one of the other users had configured an offset on the blog posts content element to make it look like the order by was working and I didn’t realise.

    So we are upgraded to the latest version and the following code has been applied to Functions.php

    
    /*
     *  Change Order By of Blog Posts in content element
     *  https://kriesi.at/documentation/enfold/change-the-sort-order-of-blog-posts-elements/
     */
    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;
    }
    

    there is a login posted previously in the private comments section of comment https://kriesi.at/support/topic/blog-posts-content-element-display-newest-posts-first/#post-922000

    Thanks so much. Upgrade to theme done and Functions.php code is now working as expected.

    We can close this one now.

    p.s. I did upload “private data” last time

    Hi There,

    I updated Functions.php according to your article, but it doesn’t seem to make a difference. Tried with the options below (I also tried using ‘post_date’). I have created a temp login to our site for you.

    
    /*
     *  Change Order By of Blog Posts in content element
     *  https://kriesi.at/documentation/enfold/change-the-sort-order-of-blog-posts-elements/
     */
    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'] = 'DESC';
    return $query;
    }
    

    And

    
    /*
     *  Change Order By of Blog Posts in content element
     *  https://kriesi.at/documentation/enfold/change-the-sort-order-of-blog-posts-elements/
     */
    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;
    }
    
Viewing 4 posts - 1 through 4 (of 4 total)