change venue name

This topic contains 2 replies, has 2 voices, and was last updated by  Barry Meadows 6 months, 3 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #27447

    i want to change the venue name on some of my venues (to add a location, so ‘The Atrium’ would become ‘The Atrium North Walsham’). When I do this the shortcode in a template do_shortcode(‘[eo_events group_events_by=”series” venue=”‘.eo_get_venue_name($venue_id).'” showpastevents=false]’) fails to find any events for the venue. When I put the venue name back, the events return to the list formed by the shortcode. What am I doing wring?

    Barry Meadows
    #27470

    Hi Barry,

    venue expects the slug of the venue, not its name. Typically the slug of the venue will not change even when you edit the name of the venue as this would change the URL of the venue.

    Try

    do_shortcode('[eo_events group_events_by="series" venue="'.eo_get_venue_slug($venue_id).'" showpastevents=false]');
    

    instead.

    Stephen Harris
    #27474

    Thanks

    Barry Meadows
Viewing 3 posts - 1 through 3 (of 3 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.