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
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
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/
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
you can't use placeholders in search attributes except for the format attribute.
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!
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
This topic has been closed to new replies.