WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
Sorting past events (6 posts)

  1. Shonu
    Member
    Posted 3 years ago #

    When displaying past events of a location using the #_ placeholders the sorting of the events goes ascending. It mkaes more sense to sort recent events with most recent first. Upcoming shall stay ascending

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 3 years ago #

    you can try working on the location list templates e.g. adding arguments like this url http://wp-events-plugin.com/documentation/event-search-attributes/

  3. Shonu
    Member
    Posted 2 years ago #

    Too sad I cannot apply the attribute to #_LOCATIONPASTEVENTS.
    I tried: [events_list limit="10" location="#_LOCATIONID" order=DESC scope=past] within the locations format template.

    This works, BUT the output is not a simple link list like #_LOCATIONPASTEVENTS but a full table with location image, etc. - something which I had specified in the event format template already.
    Of course it is a bit redundant to have the location image shown on the locations page and additionally on the past events list both at the same time.
    I might create my own placeholder or shortcode mimicking
    #_LOCATIONPASTEVENTS: #_LOCATIONPASTEVENTS_DESC

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    you can't use placeholders in search attributes except for the format attribute.

  5. Shonu
    Member
    Posted 2 years ago #

    If you mean that #_LOCATIONID is not resolved within the search functions, yes, but before it is passed to the search, it is resolved to "4" so search gets "4"
    But yes, reading the format atrtribute, I hope that I can pass the html code with placeholders there! How could I have missed this! (again...)
    Thanks for the hint!

  6. Shonu
    Member
    Posted 2 years ago #

    Bump
    Still would like the sorting of the #_LOCATIONPASTEVENTS placeholder as events list uses the complex format and here I need the same format as upcoming events

    Meanwhile I think I have to do complex listing for upcoming and future for consistency reason

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic