There is documentation on event tags but no where to do so in the plugin. For instance docs say: %event_tags% – Displays the list of the event’s tags with links to the tag pages. on this page http://docs.wp-event-organiser.com/shortcodes/events-list/.
Under permalinks there is a section to set tag URL Event Tags. The link is https://example.org/events/tag/%5Bevent_tag_slug%5D
But where would I get the tag slug? My assumption is the event CPT would have a tag taxonomy like ‘Posts’ do.
The reason for this so we can query a tag as they are generally very specific whereas categories are broad. Or they are just different taxonomies so mixing how they are structured by adding a ‘misfit’ category doesn’t make sense.
I have several one time events that are under a unique theme (membership events) and want to have a listing of them.
Thanks for support, Stephen
-
This topic was modified 5 years, 4 months ago by Andy Burns.
Andy Burns
Hi Andy,
Your assumption is right, event tags are a taxonomy for the event CPT.
To query for events in a particular tag you can use eo_get_events()
(and set event-tag
to the value or use WP_Query
and use the taxonomy query parameters
When using the event list shortcode you can query events using the event_tag
parameter (it’s not documented here but is similar to event_category
)
You can get a list of event tags by using get_terms()
and setting taxonomy
to event-tag
.
Stephen Harris
Sorry, I didn’t follow this. So you are saying coding a new PHP template is required to even use tags? It looked like from the permalinks page that this was built in. I don’t see a way to create a tag.
Andy Burns
Hi Andy,
Does ‘tags’ not appear under ‘Events’ in the admin menu? If not, go to Settings > Event Organiser > General and ensure “Select which features events should support” has “Event tags” selected.
You should be able to create and assign event tags.
Tags assigned to an event will, by default, appear on the event page. There are options to include tags in event list shortcode/widget or to filter by tag in the calendar shortcode.
Stephen Harris
I must have removed that awhile back…thank you for pointing that out! Fixed.
Andy Burns