Home Forums Event Espresso Premium EE4 Allowing widget short code on single event page

EE4 Allowing widget short code on single event page

Posted: August 21, 2014 at 7:06 am

Henrik Sommar

August 21, 2014 at 7:06 am

With EE3 I used the plug in “Widget Shortcode” to add a “Show all events in this specific category” widget on every single event. (Se and view an event.)

EE4 shows empty widget (only the widget title is visible). (This future site is not online yet.)

WordPress Version:
PHP Version:
MySQL Version:
Event Espresso Version:

Lorenzo Orlando Caum

  • Support Staff

August 21, 2014 at 12:17 pm


Are you referring to the widgets in the footer (bottom left)?

If those are dynamic widgets that are set through WordPress admin –> Appearance –> Widgets, then the information should appear.


Henrik Sommar

August 22, 2014 at 1:31 am

Test: Can I post this (I have tried to add information with an error message as a result).

Henrik Sommar

August 22, 2014 at 1:33 am

No, I am referring to the area for the event itself.

Look at or view this print screen

The footer widget shows all the event and thats fine. I’m searching for a way of ALSO showing a specific widget in the event post area. It workes in EE3 but not in EE4.


August 22, 2014 at 2:05 am


I tested the plugin out on EE 4.3.1 and it worked fine – screenshot

Henrik Sommar

August 22, 2014 at 3:53 am

Thank you!

You are right. In 4.3.1 it works 🙂 but current event will not show up. I’d like to list ALL the event within the category chosen, even the one opened.

Is that possible?


August 22, 2014 at 5:24 am


Not from what I can tell, but you would be best talking to the Widget plugin creator regarding that issue.

Henrik Sommar

August 22, 2014 at 5:57 am

🙂 YOU are the plugin creator of Event Espresso Upcoming Events and it works in EE3 so I thought it was possible in EE4.

I’ll better change the Widget title to “OTHER shows” until it works in EE4.


August 22, 2014 at 6:06 am


I meant the developer of the “Widget Shortcode” plugin.

Henrik Sommar

August 22, 2014 at 6:21 am

Thanks for impressively quick response again, Dean! 🙂

That plug doesn’t do anything but placing your widget on any place of my choice. And in EE3 with grace.

I’ll go by Plan B (using “Other dates” as Widget title)


August 22, 2014 at 6:33 am

Ahhh my apologies, I see what you are saying now. I assumed it was related to the other addon, but you are absolutely right that it is EE.

I think the devs assumed that if you are already in the event you don’t need to see it in the upcoming widget.

I’m glad you found a workaround though!

Henrik Sommar

August 22, 2014 at 6:48 am

(I’m not sure my customer will be happy when the EE4 upgraded site will be up and he will se an empty widget even though there is a show.)

I hope for an option in the settings in the future.



  • Support Staff

August 22, 2014 at 2:44 pm

Hi Henrik,

While we do not plan to add a user-configurable option for this, you can make your client happy by customizing the widget to their specifications. I outlined how to make a custom event widget in your other thread, and the code you’d change is on line 270. You can change it from:

if ( $event instanceof EE_Event && $post->ID != $event->ID() ) {


if ( $event instanceof EE_Event ) {

Henrik Sommar

August 28, 2014 at 1:27 am

Thank You!

The Gist package* and this code worked!

* Found here:

The support post ‘EE4 Allowing widget short code on single event page’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: closed

Updated by  Henrik Sommar 6 years, 5 months ago ago

Topic Tags


This topic is: resolved
Do NOT follow this link or you will be banned from the site!