Events Manager
Has anyone had any success with social media sharing? (7 posts)

  1. pieyum
    Posted 4 years ago #

    I have my blog all set up and I want to be able to share the events that I add. The plugin I'm using for Social Media sharing only allows display on Pages and Posts. Since EM is neither it's not showing up. Has anyone been able to integrate EM with this plugin:

    -Scrolling Social Sharebar

    Here's my blog:


  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 4 years ago #

    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.

  3. Missweblash
    Posted 4 years ago #

    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?

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 4 years ago #

    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.

  5. Missweblash
    Posted 4 years ago #

    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("http://www.supporthandmade.co.uk" . ( $_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.

  6. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 4 years ago #

    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');

  7. Missweblash
    Posted 4 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic