Showing Venue Name in Admin Calendar View

WordPress Event Management, Calendars & Registration Forums General Question Showing Venue Name in Admin Calendar View

This topic contains 2 replies, has 2 voices, and was last updated by  Omayr McAdam 9 years, 5 months ago.

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

    Im looking to show the Venue Name in the Admin Calendar View.

    I have a Multi room Single Venue Client and I’m implementing EO for the management of their events.

    However Ive tried messing around with various bits of code to get the Admin calendar to display the venue name so staff can instantly see which event rooms are taken at a glance.

    enter image description here

    Something similar to the picture above.

    this is not needed for shortcode calendar, just for admin.
    Any chance you can point me in the right direction.

    Many thanks

    Omayr McAdam
    #19541

    You could use the hook eventorganiser_admin_fullcalendar_event (http://codex.wp-event-organiser.com/hook-eventorganiser_admin_fullcalendar_event.html).

    That hook filters an array (an event), and you could use that to change the value for the title attribute. So it wouldn’t be exactly as your screenshot, but it would allow you to display the venue as the event title.

    add_filter( 'eventorganiser_admin_fullcalendar_event', 'my_change_event_title_admin_cal', 10, 3 );
    function my_change_event_title_admin_cal( $event, $event_id, $occurrence_id ) {
    
        //$event['title'] = '';//Change this to display venue and event title
        return $event;
    
    };
    

    Please note that the calendar is cached, and so any changes might not take immediate effect. You can clear the cache by updating an event.

    Stephen Harris
    #19556

    Thanks for the snippet.

    Modified a few things and all worked perfectly.

    Great Support as always Stephen, Thanks 🙂

    Omayr McAdam
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.