Get Event ID on Single Event Page Post date Home › Forums › Calendar Products › Events Calendar PRO › Get Event ID on Single Event Page This topic has 5 replies, 4 voices, and was last updated 10 years ago by Laura Yeffeth. Viewing 5 posts - 1 through 5 (of 5 total) Author Posts June 21, 2016 at 12:10 pm #1130017 Laura YeffethParticipant How do I retrieve the event ID for a single event outside the loop. June 21, 2016 at 2:42 pm #1130094 CliffMember Hi. Where are you wanting to display it and how are you wanting to display it? For example, are you wanting to get an event’s ID from its URL or from its post title or something else? June 21, 2016 at 3:18 pm #1130114 Laura YeffethParticipant From the URL would be fine. I need to add something to the header for a specific event, so I’m looking for a conditional statement I can use to target the event. June 22, 2016 at 8:23 am #1130358 CliffMember However you choose to get it, the Event ID is just the WordPress Post ID. url_to_postid() or a similar function might be helpful to you. Once you get a Post ID, though, you should run it through tribe_is_event() to verify the Post ID is an Event ID. I hope that helps. July 7, 2016 at 9:35 am #1136548 Support DroidKeymaster This topic has not been active for quite some time and will now be closed. If you still need assistance please simply open a new topic (linking to this one if necessary) and one of the team will be only too happy to help. Author Posts Viewing 5 posts - 1 through 5 (of 5 total) The topic ‘Get Event ID on Single Event Page’ is closed to new replies. → Please verify your API key is correctly entered on the settings