Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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?

    http://test.curlyhost.com/

    Thank you!

    #341241

    Hi 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,
    Ismael

    #342378

    I 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

    #343444

    Hey!

    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!
    Ismael

    #343521

    Thank 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?

    #343861

    Hey!

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.