-
AuthorPosts
-
August 9, 2015 at 11:02 pm #484968
Hi,
I’m new to Enfold. FYI: I’ve installed Enfold on a localhost, as well as its child theme. Globally it’s working, but I cannot manage this issue:
I took the code given in your 2 posts (http://kriesi.at/documentation/enfold/change-the-sort-order-of-blog-posts-elements/ ◄► http://kriesi.at/documentation/enfold/how-to-add-an-orderorderby-option-to-the-blogpost-sliderportfoliomasonry-grid-element/) and added it to functions.php in my child theme. I went for the random option. But nothing happens. The posts are still shown in the same chronological manner. Besides I tried the alphabetical order ascending et descending — still nothing.
Is there a trick to know ?Additionally, I didn’t really understand this step :
Go to the blog/post slider/portfolio/masonry grid element settings screen, scroll to the bottom of the option window and configure the order/orderby settings. Then save the template and page and the posts should be displayed based on the new sort order. Where is this menu ?Then, could you explain me as well : Attention – if you use the “Random” sort option do not use it in combination with the “pagination” setting? What do you mean by pagination setting ?
Cheers,
- This topic was modified 9 years, 3 months ago by Anton.
August 10, 2015 at 3:23 pm #485381Hey Anton!
That’s actually for the portfolios, we’ll get it updated. Try this out instead.
add_filter('avia_blog_post_query', 'avia_modify_post_grid_query_rand'); function avia_modify_post_grid_query_rand( $query ) { $query['orderby'] = 'rand'; return $query; }
No further editing should be required. Pagination will not work with random queries so keep that in mind.
Cheers!
ElliottAugust 11, 2015 at 12:43 pm #485892Hallo,
I changed the code, but nothing happens. At the same time I didn’t find blog/post slider/portfolio/masonry grid element settings screen in order to configure the orderby settings, like it’s mentioned in your tutorial (in may 2014).
August 11, 2015 at 5:54 pm #486105Hi!
Send us a WordPress login and we’ll take a look.
Best regards,
ElliottJanuary 28, 2018 at 11:17 am #903859I have the same issue, i have tried to fix this with this code in my functions but it doesnt work. I am using the blog articles option in Enfold and i want to show the first one first and the last one last but it doesnt work.
I have been looking for solutions on the enfold forum and tried some codes out in the functions.php but it didntn work at all.
- This reply was modified 6 years, 9 months ago by Angelo. Reason: added some more text
January 29, 2018 at 10:34 pm #904502Hi,
Please crate a new topic as the one here is old and we would need access to modify.
Thank you
Best regards,
Basilis -
AuthorPosts
- The topic ‘Sort order of Blog Posts explanation needed’ is closed to new replies.