So how do i have to change my piece of code to request the meta key instead of the field
Below is the code:
$start_date = date_i18n(“Ymd\THis\Z”, get_post_meta( get_the_ID(), ‘custom-field-of start-date’, true ));
$end_date = date_i18n(“Ymd\THis\Z”, get_post_meta( get_the_ID(), ‘custom-field-of-end-date’, true ));
Because when i try to fill in the meta-key that the plugin gave the field nothing happens
Could you please help me with this problem as i cannot make it work
Here is a link with the whole code for more info:
https://gist.github.com/Jany-M/af50d5c4a0eec2692734d76383ed4dd8
Can you please take a look and tell what i have to change to make it fill in the fields of the ics file with the correct data