The following changes will display the first paragraph of the session content as short description.
Please do remember to back-up the files prior to any edits.
1) Open wp-content/themes/Tyler/event-framework/helpers/cpt/sessions.php
2) Around line number 204, you can find the following code:
array_push($ret[‘sessions’], array(
‘post_title’ => get_the_title(),
‘url’ => get_permalink(get_the_ID()),
‘time’ => $time,
‘end_time’ => $end_time,
‘date’ => $session_date,
‘location’ => $location ? $location->name : ”,
‘color’ => $track ? EF_Taxonomy_Helper::ef_get_term_meta(‘session-track-metas’, $track, ‘session_track_color’) : ”,
‘speakers’ => $speakers
));
3) Please replace with the below code:
$content = wpautop(get_the_content());
array_push($ret[‘sessions’], array(
‘post_title’ => get_the_title(),
‘post_content’ => substr( $content, 0, strpos( $content, ‘</p>’ ) + 4 ),
‘url’ => get_permalink(get_the_ID()),
‘time’ => $time,
‘end_time’ => $end_time,
‘date’ => $session_date,
‘location’ => $location ? $location->name : ”,
‘color’ => $track ? EF_Taxonomy_Helper::ef_get_term_meta(‘session-track-metas’, $track, ‘session_track_color’) : ”,
‘speakers’ => $speakers
));
4) Open wp-content/themes/Tyler/js/schedule.js
5) Around line number 111, you can find:
<a href=”‘ + session.url + ‘” class=”title”‘ + color + ‘><span>’ + session.post_title + ‘</span></a>
6) Replace this code with the below code:
<a href=”‘ + session.url + ‘” class=”title”‘ + color + ‘><span>’ + session.post_title + ‘</span></a>
<p>’ + session.post_content + ‘</p>
7) Save the files.