To make it clearer, since the mere listing can simply be done with orderby, I would like to output a list like this:
<h2>Great Britain</h2>
<h3>London</h3>
08:00 Event Description…
10:00 Another event …
<h2>Spain</h2>
…
So actually it is about a very customized output including HTML structure and for sure some loops.
It might be possible with an own custom shortcode. If it is possible but difficult, are you also accepting paid jobs like this?
The tricky thing is that the country and city should always be displayed just once, and only inside of a city the full DB entries of an event are displayed. I don’t know if IF would even be enough here to somehow check IF it is the first entry and only show it then.
But it is late already, and maybe tomorrow I get closer to a solution, or find an answer from you already showing possible directions.
You would probably need to first sort using a transform.
Next you would have to aggregate the data. That is, for each city, group all the events under it. I think the best way to do that is to code a custom short code. That short code would loop through the results and output what you want. You would put the “trans” for sorting into it.
If you want me to code it for you for a fee, contact me at [email protected]
Thanks. I will do whatever I can by myself and then come back to your offer. Maybe we renounce from our favorite solution, I am already quite far with a nice output. I will let you know the result but it might take some more time.
I wrote you a mail now, thanks for the offer.