Posted: September 15, 2015 at 12:40 pm
September 15, 2015 at 12:40 pm Hello, I am using the espresso_event_date_obj to display my dates but when I use this there is no automatic ical button. How do I show the ical button? Thanks in advance. |
|
|
How about using the generate_add_to_iCal_button method in conjunction? /wp-content/plugins/event-espresso-core-reg/modules/ical/EED_Ical.module.php |
|
How about using the generate_add_to_iCal_button method in conjunction? /wp-content/plugins/event-espresso-core-reg/modules/ical/EED_Ical.module.php |
Thanks but how would I do that, is there an example you can refer me to? I am not advanced with OO coding. I tried to just call that method directly but that didn’t seem to work. |
|
September 16, 2015 at 11:20 am Hi, we can’t write custom coding for you but we try to provide a starting point where possible. The iCal button should automatically appear as part of the datetimes for different events. Is that missing? — |
|
September 16, 2015 at 12:02 pm I understand but was wondering if there was example code somewhere for this question. I worked off of example code and am currently using the below to display my date in my format but not sure how to get the ical button. $datetime = espresso_event_date_obj($post->ID); <h5 class=”event-date”><?php echo $start_day.’,<br/>’.$start_date; ?></h5> Thanks |
|
Ok figured out how to call the function. I needed to use echo EED_Ical::generate_add_to_iCal_button( $html, $datetime ); I left off the EED_Ical:: in front of the function. Now, my question is, how do I format the body of the ical when it is opened by the user. Everything is put in one big paragraph and loses formatting as it is in the body of the event. |
|
Hi Maceo, Can you post a link to the page with the iCal so we can view this please? |
|
Sure, here you go. http://www.staging1.dallasreigroup.com/events/funding-your-deals-just-got-easier/ |
|
Following up, is it possible to format what shows when a person opens the ical? Did you see what it does currently from my provided link as you requested? |
|
September 19, 2015 at 12:15 pm Hi Maceo, the information that is in the ical files are pulled from the events. There aren’t currently any options to adjust the formatting of how it appears once it is imported into the Calendar app or another calendar like Google Calendar. — |
|
September 19, 2015 at 12:42 pm Right, I understand the information comes from the events but they are not pulled how I have the event. Something strips everything and makes it one big paragraph. Did you review the link? Shouldn’t the information come as we actually have it in the event itself? |
|
Hi Maceo, This looks like an issue with the iCal when using multiple new lines within the event description. The content of the event is actually there, but all but the first line is being ignored. I have requested some feedback from our developers on this. |
|
The support post ‘Add ICal button?’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.