Support » Plugin: Events Manager » [Plugin: Events Manager] Has anyone had any success with social media sharing?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Marcus


    NetWebLogic Support

    EM is actually running off a page, but it will only show the base events page as a share link.

    Version 5 is in beta and uses custom posts, which should work.

    How the heck do you get the slug for the individual event pages?

    I’m using the_permalink() in my calls to the Twitter API, but all I’m getting is the top-level slug:

    I’ve tried with title re-writing on/off and no change.

    Doesn’t seem to be much point in having social media buttons if you can’t actually grab the URL!

    Anyone know how to get the full friendly URL for a single event?

    Plugin Author Marcus


    NetWebLogic Support

    depends, if you’re using the beta, the_permalink should work now,

    if you’re on v4, you need to use


    $EM_Event is global.

    Thanks for that Marcus, I’ll have to look into getting the most up to date version (though I’m not getting a plugin update notification on my dashboard).

    I had to take a slightly different approach, as my social media bar is in my header.php file and shared across the entire site.

    I’m NOT a php developer so please don’t mock me if this is totally the wrong solution – am always grateful for advice from those with greater programming skills ๐Ÿ™‚

    echo esc_url("" . ( $_SERVER['REQUEST_URI'] ));

    The reason I did this was that if I didn’t explicity put my domain at the front, I only got the ‘slug’. It does seem to work for all pages. What I don’t (yet) understand is if this is making extra calls to the server or extracting the information from elsewhere (sorry, I’m hopeless!)

    I’m beginning to think it’s my template that’s at fault, as it’s doing wierd things with my meta data too :-/ Sadly I’m so far down the design road now that I simply can’t afford to find a better template without switching the site off for a few weeks. In any case, having to fix things like this myself is helping me learn PHP.

    Plugin Author Marcus


    NetWebLogic Support

    that should be ok actually, but test it first just to make sure.

    templates can mess things up, love or hate it, part of the wp game ๐Ÿ™‚

    You could also try this:
    global $EM_Event;
    echo $EM_Event->output(‘#_EVENTURL’);

    Thanks Marcus!

    I’m thinking I need a custom page template for this, with a customer header.

    I’ve made an action note to rip my template apart at some point and grab the bits I particularly like, and try to develop my own in due course.

    Thanks again for your help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Events Manager] Has anyone had any success with social media sharing?’ is closed to new replies.