Support

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

Viewing 13 reply threads


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 http://www.trappanbio.se and view an event.)

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

WordPress Version:
3.9.2
PHP Version:
5.4.26
MySQL Version:
5.5.32
Event Espresso Version:
4.3.1.p


Lorenzo Orlando Caum

  • Support Staff

August 21, 2014 at 12:17 pm

Hi,

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.


Lorenzo


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 http://trappanbio.se/visning/?ee=106 or view this print screen http://trappanbio.se/printscreen.png

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.


Dean

August 22, 2014 at 2:05 am

Hi,

I tested the plugin out on EE 4.3.1 and it worked fine – screenshot http://take.ms/dQKTv


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?


Dean

August 22, 2014 at 5:24 am

Hi,

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.


Dean

August 22, 2014 at 6:06 am

Hi,

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)


Dean

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.

Cheers!


Josh

  • 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() ) {

to

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: https://eventespresso.com/topic/ee4-date-format-week-day-names-month-names/

Viewing 13 reply threads

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.

Event Espresso