Hi @dadolux and @xylus,
I had the same problem today and managed to figure it out after digging around in the plugin’s files.
When an event is imported, the ID is saved in the meta data of the post. You can retrieve it by using the ife_facebook_event_id
meta value stored in each post.
For example:
<?php
$event_id = get_the_ID();
$facebook_id = get_post_meta( $event_id, 'ife_facebook_event_id', true );
<a target="_blank" href="https://www.facebook.com/event/<?php echo $facebook_id; ?>">View Event on Facebook</a>
?>
Hope this helps anyone facing this issue. I would recommend updating the docs for this plugin to include this, as it’s a commonly used variable and feature. Great plugin!
Cheers,
Cody
-
This reply was modified 7 years, 4 months ago by
cody123.
-
This reply was modified 7 years, 4 months ago by
cody123. Reason: code update
-
This reply was modified 7 years, 4 months ago by
cody123. Reason: grammer