-
AuthorPosts
-
February 21, 2019 at 4:47 pm #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 ….February 24, 2019 at 4:02 pm #1070955Hey 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,
VictoriaFebruary 25, 2019 at 9:18 am #1071159Hey Victoriy,
sure – see in the private content box.
Thank you!
Beste regards,
DanielaFebruary 27, 2019 at 9:13 am #1072200Hi!
Did it work with the access?
Did you already see something?February 27, 2019 at 2:31 pm #1072283Hi,
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,
IsmaelMarch 1, 2019 at 4:33 pm #1073259Hi 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,
DanielaMarch 4, 2019 at 4:47 am #1074121Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.
