• wellconnit

    (@wellconnit)


    Hi All,

    Just wondering what people are doing to get Events Manager fields into Elementor?

    We’ve got Elementor Pro and are looking at getting Events Manager Pro once we’re closer to launch.

    Is there any way to get the non-standard fields(Location, Dates, Times, etc) into Elementor so we can customise the design using the Elementor principles? Ideally it’d be able to read the Custom Fields too, for now we’ve swapped to ACF so we can pick up those fields in Elementor now, it’s the location and event time that we’re trying to capture.

    I have thought about building something based on Copilot’s logic, but wanted to see how other people are handling it first.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m using Elementor Pro together with Events Manager, and I expose the Events Manager fields to Elementor through small custom WordPress shortcodes.

    For example, this is the shortcode I use for the event date in my single event template:

    function wpc_elementor_shortcode() {
    global $EM_Event;

    $EM_Event = em_get_event($EM_Event);

    return $EM_Event->output("#l #j #F #Y");
    }
    add_shortcode('emlistdate', 'wpc_elementor_shortcode');

    I can then simply add [emlistdate] to an Elementor Shortcode widget.

    You can do the same for the other Events Manager fields, for example:

    function em_event_location() {
    global $EM_Event;
    $EM_Event = em_get_event($EM_Event);

    return $EM_Event->output("#_LOCATIONNAME");
    }
    add_shortcode('emlocation', 'em_event_location');

    For custom Events Manager attributes, you can also output them with:

    $EM_Event->output("#_ATT{your_field_name}");
    Thread Starter wellconnit

    (@wellconnit)

    Hey @beonword ,

    The issue with that method is that you’re limited to dealing with editing a shortcode, I was hoping that someone would’ve integrated it with the dynamic tags that Elementor supports, so that you can add a text element and then manipulate it as a standard text object rather than a shortcode.

    If anyone else has had any experience please let us know.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.