Tag option not showing but is in documentation

WordPress Event Management, Calendars & Registration Forums General Question Tag option not showing but is in documentation

This topic contains 4 replies, has 2 voices, and was last updated by  Andy Burns 5 years, 3 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #35759

    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
    #35762

    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
    #35898

    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
    #35948

    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
    #35950

    I must have removed that awhile back…thank you for pointing that out! Fixed.

    Andy Burns
Viewing 5 posts - 1 through 5 (of 5 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.