Events page month view: How to schow city after event title?

Home Forums Calendar Products Events Calendar PRO Events page month view: How to schow city after event title?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #912463
    Rafael
    Participant

    Hello support,
    On the events page on the calendar (month view) only the events titles are displayed. Can I also have the events cities displayed after the title? Or at least in the hover-bubble?

    #912546
    Brian
    Member

    Hi Again!

    I can try to point you in the right direction on this customization.

    It is possible to add the city name there.

    If you Follow our Themer’s Guide:

    https://theeventscalendar.com/support/documentation/events-calendar-themers-guide/

    It will show you how to move the files over to edit.

    You will want to look at these two files for the changes:

    /the-events-calendar/views/month/single-event.php

    /the-events-calendar/views/month/tooltip.php

    That should get you started and you can take it from here.

    Let me know if you have any follow up questions.

    Thanks

    #913293
    Rafael
    Participant

    Thanks Brian. I understand the premise of the Themer’s Guide and how to move and edit template files. I’ve looked at the files you pointed me to, but I’m not a programmer and don’t quite understand the instructions in the template:
    /the-events-calendar/views/month/single-event.php
    However, I do see where in that template I would need to add the code to display the city after the event title. All I need is the actual function call to retrieve and display the city. Maybe it’s something like:
    <?php echo tribe_get_event_location() ?> ?
    Can you help with that specific code to display the event city?

    #913316
    Brian
    Member

    Ok sounds good. I can help with that.

    So the City is saved as a WordPress Custom Field called:

    _VenueCity

    So you could use WordPress’s get_post_meta() function and this function to get the venue id: (post id for the venue for an event)

    tribe_get_venue_id()

    Let me know if that helps

    Thanks

    #932244
    Brian
    Member

    Since there is has not been any activity on this thread for over 2 weeks so I am now closing it. Feel free to start a new thread if you have further issues. Thanks! 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Events page month view: How to schow city after event title?’ is closed to new replies.