Tagged: enfold, magazine, order, the events calendar
-
AuthorPosts
-
October 25, 2014 at 8:25 pm #341039
I’m using The Events Calendar and I want to show a list of events that is coming up using the Masonry Content Element. It seems that it only show events furthest away to most recent (DESC) – this is very inconvenient if you want to show the next few events coming up (ASC) versus the ones farthest away. It seems the developers force this order because it doesn’t automatically delete events after they’ve passed and so if you were to show events in ASC order it would show all of the past events as well.
Have you guys looked into making it possible to show only the upcoming events in ascending order and not show past events?
Thank you!
October 27, 2014 at 1:31 am #341241Hi Andrea!
Thank you for using Enfold.
We have configured the Events Calendar plugin to be compatible with the theme just recently and is not fully working with the masonry element yet. Feel free to request the feature on our Feature Requests page.
You can however add an order and orderby option on the masonry element but it will still not remove past events: http://kriesi.at/documentation/enfold/how-to-add-an-orderorderby-option-to-the-blogpost-sliderportfoliomasonry-grid-element/
Best regards,
IsmaelOctober 28, 2014 at 7:04 pm #342378I am using the oderby option with the magazine element. But the magazine element seems to sort differently compared to blog posts or masonry.
While the latter sort by date of the event, magazine seems to sort by publishing date.
Then, if I click a category tab on the magazine it allways sorts DESC.The first problem I worked around by changing the publishing date to exactly one year before the event. But it would be nicer if the sorting would recognize the event date (is this something for a Feature Request, or is it a bug?)
For the second problem I’d need some advise.Best, Wolfgang
October 30, 2014 at 3:38 pm #343444Hey!
Thank you for using Enfold.
Please add this on functions.php to sort the magazine element:
add_filter('avf_magazine_entries_query', 'avf_magazine_entries_custom_query'); function avf_magazine_entries_custom_query ( $query ) { $query['orderby'] = 'date'; $query['order'] = 'DESC'; return $query; }
Refer to the wp codex for more order and orderby parameters.
Cheers!
IsmaelOctober 30, 2014 at 6:26 pm #343521Thank you very much, Ismael. I appreciate your promt service.
But magazine element used with tribal events still shows and sorts by publishing date, while it sould show and sort by event date. Any solution for that?October 31, 2014 at 5:08 am #343861Hey!
Yes, unfortunately, for now the magazine element can only fetch the event posts. Please feel free to open a request or vote for this feature on our Feature Requests.
Regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.