Viewing 5 replies - 1 through 5 (of 5 total)
  • you can try working on the location list templates e.g. adding arguments like this url https://wp-events-plugin.com/documentation/event-search-attributes/

    Thread Starter Cars10

    (@shonu)

    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

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

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

    Thread Starter Cars10

    (@shonu)

    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!

    Thread Starter Cars10

    (@shonu)

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Events Manager] Sorting past events’ is closed to new replies.