[ad_1]
Hi,
is it possible to get the data from a plugin like WP Event Manager? In getting the data filled dynamically per event:
<?php
global $post;
$start_date = get_event_start_date();
$end_date = get_event_end_date();
$start_time = get_event_start_time();
$end_time = get_event_end_time();
$address = get_event_address();
$location = get_event_location();
$separator = get_wpem_date_time_separator();
$check_ticket_visibility = get_option('event_manager_enable_event_ticket_prices_filter', true);
wp_enqueue_script('wp-event-manager-slick-script');
wp_enqueue_style('wp-event-manager-slick-style');
do_action('set_single_listing_view_count');
$event = $post;
?>
<!-- Add to Calendar Button -->
<div class="calendar-button-container">
<add-to-calendar-button
name="<?php echo esc_attr(get_the_title()); ?>"
start-date="<?php echo esc_attr(date('Y-m-d', strtotime($start_date))); ?>"
start-time="<?php echo esc_attr(date('H:i:s', strtotime($start_time))); ?>"
end-time="<?php echo esc_attr(date('H:i:s', strtotime($end_time))); ?>"
time-zone="<?php echo esc_attr(get_the_event_timezone()); ?>"
location="<?php echo esc_attr(get_event_location()); ?>"
description="<?php echo esc_attr(wp_strip_all_tags(get_the_content())); ?>"
:options="["Apple", "Google", "iCal", "Outlook.com", "Microsoft 365", "Microsoft Teams", "Yahoo"]"
light-mode="bodyScheme"
></add-to-calendar-button>
</div>
<!-- End of Add to Calendar Button -->
