• Resolved mapl

    (@mapl)


    Hi Patrick,

    it’s great that you have this plugin! Not using Google is always welcoming.

    My problem: In frontend the map is not showing. I tried on Events → Settings → Formatting → Single Event Page → Single Event Page format replacing <div (…) with #_LOCATIONMAP, I tried then <div style=”float:right; margin:0px 0px 15px 15px; width:400px; height:300px”>#_LOCATIONMAP</div>. I cleared always cache, I deactivated the plugin and activated it again. But never is a map showing. The map formatting is not 100% but the standard width of 400px and height of 300px. In backend all works perfect.

    What do I wrong?
    Thank you for help!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    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 6 years, 2 months ago by mapl.
    • This reply was modified 6 years, 2 months ago by mapl.
    • This reply was modified 6 years, 2 months ago by mapl.
    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    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..

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    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…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Maps not showing frontend’ is closed to new replies.