-
AuthorPosts
-
April 5, 2017 at 1:34 am #772117
Hey guys
I am finishing my site and I noticed that two pages that display posts are doing so with the most recently published post first. I would prefer the oldest post as that would put them in chronological order.
It is my homepage slider
and my special events page
https://www.meditationinbloomington.org/category/special-events/I tried this code in my child theme functions file, but it didn’t have any impact!
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;
}Thanks
April 6, 2017 at 7:06 pm #773404I got the categories to post in reverse order with a plugin, but the slider didn’t respond. So, I still need code for the slider. If possible, I’d like to use code in a functions or shortcode file for the category posts instead of a plugin.
Thanks
April 6, 2017 at 8:01 pm #773445Hi kelsangwangpo,
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,
VictoriaApril 6, 2017 at 8:52 pm #773486Thanks here are the credentials.
Also, I disabled the plugin so you can see the ordering issue on the category page.April 6, 2017 at 10:24 pm #773552Hey!
Those posts are set as sticky.
Can you remove that and the posts loop sequence will return back to normal.Thank you
Cheers!
BasilisApril 6, 2017 at 11:04 pm #773575Thanks Basilis
I checked the post status in quick edit mode and they were not marked as sticky.
I made them all sticky. No change.
I removed sticky. Still no change.
At present, the posts are not sticky, but not looping in the order I want. They are reversed from what I’d like.Sorry for the bad news. But I bet y’all have something more up your sleeves. Your support is Stellar
April 10, 2017 at 9:21 pm #775660Hey team
Just curious if there is a method to insert some code into the child theme? Is that the easiest approach. I have tried a few things and none worked.
Thanks big time
April 11, 2017 at 5:41 am #775785Hi,
Please use the “avia_feature_image_slider_query” filter in the functions.php file:
add_filter('avia_feature_image_slider_query', 'avia_feature_image_slider_query_mod', 10, 1); function avia_feature_image_slider_query_mod($query) { $query['orderby'] = 'date'; $query['order'] = 'ASC'; return $query; }
// https://kriesi.at/support/topic/pinned-posts-in-enfold-blog-elements/#post-663662
// https://kriesi.at/support/topic/image-order-on-the-feature-image-slider/#post-655965Best regards,
IsmaelApril 11, 2017 at 6:02 am #775797Thank you Ismael!
That is exactly what I was going for. Is there a way I can set the categories to do the same on a category page? The page is https://www.meditationinbloomington.org/category/special-events/.
I am trying to show people all events in the special event category. I’d like them to see the events in the order they will happen, instead of reverse order.
Thanks again
April 11, 2017 at 8:29 pm #776296Hey team
The solution I needed was here.
https://kriesi.at/support/topic/posts-in-reverse-order/Thanks for being there for support. Sometimes searching through the forum takes days, but I am glad I found an answer in there.
This can be closed now.
CheersApril 13, 2017 at 11:22 am #777178 -
AuthorPosts
- You must be logged in to reply to this topic.