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 ….
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
Hey Victoriy,
sure – see in the private content box.
Thank you!
Beste regards,
Daniela
Hi!
Did it work with the access?
Did you already see something?
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
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
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