Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1070003

    Hello Kriesi team,
    in our widget “current blog posts” the newest are not displayed – in the footer. Also, we would like to have the last blog posts displayed on the start – but there are still the last year displayed, although already new ones were created. Can you help me with that? I have already deleted everything once and re-created, but there was no change ….

    #1070955

    Hey beyond-flora,

    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

    #1071159

    Hey Victoriy,
    sure – see in the private content box.
    Thank you!
    Beste regards,
    Daniela

    #1072200

    Hi!
    Did it work with the access?
    Did you already see something?

    #1072283

    Hi,

    Thanks for the update.

    You can use this filter in the functions.php file to change the default order of the posts.

    add_filter('avia_blog_post_query', 'avia_blog_post_query_mod');
    function avia_blog_post_query_mod( $query ) {
        $query['orderby'] = 'date';
        $query['order'] = 'DESC';
        return $query;
    }

    Best regards,
    Ismael

    #1073259

    Hi Ismael,
    …. Okay thanks!
    Why is it that I have to add this?
    Is that the same with every update?
    Should not that actually be “automatic”?

    Best regards,
    Daniela

    #1074121

    Hi,

    There is probably a plugin or a custom snippet that alters the default posts query, so you have to use that code to re-adjust the order of the posts. Did you install a child theme? Add the filter in the child theme’s functions.php file, so it won’t get overwritten on update.

    // https://kriesi.at/documentation/enfold/child-theme/#how-child-themes-work

    Best regards,
    Ismael

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