Hi, Stephen,
I’ve already attempted to submit this query twice, but it seems both times failed, so here I go again!
I’m getting tremendous mileage from the event_list %event_organiser_url% code you gave me – https://wp-event-organiser.com/forums/topic/event-list-shortcode-include-organiser-wp-username-linking-website/. I use it in various lists with the format tweaked for specific event categories. Great! Thank you! š
Alas, Iām still not very code-clue-ful, so I need a tiny bit more help with conditional code.
In some lists, I mix more-than-one category, and organisers with and without URLs.
So in this example:
[eo_events event_category="introduction,intermediate,review" showpastevents="true" event_start_after="first day of january this year" event_end_before="first day of january next year" no_events="No events announced at present"]<strong>%start{j F}% - %end{j F}%:</strong> <a href="%event_url%">%event_title%</a> <em>led by <a href="%event_organiser_url%">%event_organiser%</a></em>[/eo_events]
Please give me the syntax for these 3 conditions?
1) IF event_category=”introduction,intermediate”, show:
<em>led by <a href="%event_organiser_url%">%event_organiser%</a></em>
if event_category=”review”, don’t show it.
2) IF %event_organiser% is exactly “some-user”, don’t show:
<em>led by <a href="%event_organiser_url%">%event_organiser%</a></em>
but for the remainder, show it.
3) AND IF other users’ %event_organiser_url% is not empty, show:
<em>led by <a href="%event_organiser_url%">%event_organiser%</a></em>
otherwise, only show:
<em>led by %event_organiser%</em>
Thanking you in advance for all your very kind help!
Vicki