Import .ics event UID to use on frontend

WordPress Event Management, Calendars & Registration Forums iCal Extension Import .ics event UID to use on frontend

This topic contains 1 reply, has 2 voices, and was last updated by  Stephen Harris 3 days, 19 hours ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #41622

    Hi there,

    I am hoping you can explain to me if it is possible to display the UID of an event inmported from .ics file?
    The format of an event I am importing is as follows:
    DESCRIPTION:\n\nTest test.\n\nOther information:\n<br>
    LOCATION:Event Centre, Gate 4 123 Event Road, City, Region<br>
    SUMMARY:New Event - City<br>

    I’m trying to display the number before the “@” on
    UID:12020017@, so in this case “12020017”.

    Is there any way to do this?

    Kind regards,

    Ultimate Design

    Hi Jane,

    Yes you can use the function:


    This will return a UID even for events that weren’t imported. If you only want the UID for imported events you can do the following instead:

    $uid = get_post_meta( get_the_ID(), '_eventorganiser_uid', true );
    Stephen Harris
Viewing 2 posts - 1 through 2 (of 2 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.