The link you gave does not appear to be a Events Manager generated page. None of their files or styles are loaded either.
Also, the link “Tickets” refers to a different domain. So you need to look at your configuration.
Looking at the url, that should be for the calendar, but it is showing only one event, while your side bar lists two. Single event pages should have their own url after the calendar slug.
Thread Starter
mapl
(@mapl)
Hi Patrick,
I use a normal page with a shortcode [event post_id=xxxx], because
a) we sell tickets only for the next event (with another program therefore the link to our subdomain) and
b) I use a dynamic template created in our theme.
I don’t understand why the page with shortcode don’t work but this link does https://www.aob-ev.de/events/fruehjahrskonzert-des-aob-e-v/ (there you can see why I use the dynamic template). With Google maps there is no problem with the shortcode.
Best regards
-
This reply was modified 7 years, 5 months ago by
mapl.
-
This reply was modified 7 years, 5 months ago by
mapl.
-
This reply was modified 7 years, 5 months ago by
mapl.
Okay, that is not the most common way to use Event Manager, but okay. 😉
I did some testing for you. The problem is that the short code does not get you/the page into the Event Object. So other EM functions will also not work.
I am using a custom shortcode in my ticket list and using the shortcode also does not allow you to use EM native functions like $EM_Event->get_tickets(), $EM_Event->output(), etc.
The second link you provided is a normal single event page, and then you are in the Event Object. That is why all functions and shortcodes do work.
On my live blogs I also tested the shortcode and, because I am using several placeholders (native and custom) using the shortcode breaks the site.
So it is because of the way Events Manager handles the [event] shortcode. Not much I can do about that, because it’s core EM code.
It seems the [event] shortcode is a very stripped down output of the event.
Sorry..
I think I have found a workaround for you. 😀
In wp-content/events-manager/em-shortcode.php
Scroll to line 161. Change “global $post;” to
global $post, $EM_Event;
Thread Starter
mapl
(@mapl)
That’s it! You are great!
Many thanks…