Forum Replies Created
-
AuthorPosts
-
March 8, 2018 at 8:29 am in reply to: Blog Posts content element – display newest posts first #923642
thanks very much, changing the event setting resolved the issue :)
March 7, 2018 at 1:32 pm in reply to: Blog Posts content element – display newest posts first #922976actually, 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
March 7, 2018 at 11:15 am in reply to: Blog Posts content element – display newest posts first #922847Thanks 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
March 6, 2018 at 4:08 am in reply to: Blog Posts content element – display newest posts first #922000Hi 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; }
-
AuthorPosts