Support

Home Forums Event Espresso Premium Show Venue Name in Upcoming Events Widget

Show Venue Name in Upcoming Events Widget

Posted: May 14, 2015 at 7:33 am

Viewing 4 reply threads


Geoff Murrey

May 14, 2015 at 7:33 am

I would like to show the Venue ‘Name’ after the event in the Upcoming Events Widget.
I’ve gone through the code and found the widget function in /widgets/upcoming_events/EEW_Upcoming_Events.widget.php around line 265

Within the loop for displaying the events (around line 365) I see where the Description is optionally displayed based on the configuration.

if ( $show_desc && $desc ) {
    echo '<p style="margin-top: .5em">' . $desc . '</p>';
}

From what I see here it looks like I need to add code into this file rather than through a filter/action.

e.g.

$venueName = $event-> ????
echo '<p style="margin-top: .5em">' . $venueName . '</p>';

How would I fill $venueName ??


Lorenzo Orlando Caum

  • Support Staff

May 14, 2015 at 11:23 am

Hi Geoff, please create a custom widget by following this tutorial:

https://eventespresso.com/topic/attempting-to-customize-upcoming-events-widget-no-widget-php-available/#post-102681

Otherwise, any customizations will be lost when you update Event Espresso.

Next, here is an example of how to retrieve certain information from the venue:

https://eventespresso.com/topic/need-to-add-the-venue-city-to-the-upcoming-events-widget-ee4/#post-126147


Lorenzo


Geoff Murrey

May 18, 2015 at 3:10 am

Worked great, many thanks Lorenzo.


Dean

May 18, 2015 at 3:49 am

Hi Geoff,

Anything else we can help with regarding this topic or may we mark it as resolved?


Geoff Murrey

May 18, 2015 at 3:50 am

Resolved, thanks

Viewing 4 reply threads

The support post ‘Show Venue Name in Upcoming Events Widget’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso