Hi — Is there any way to add excerpts and read more links to the Events Calendar Upcoming Events listings? For example, I’d like to add excerpts and read more links to the listings at the Upcoming Events listings at the bottom of http://nlsla.wpengine.com/contact/. (hosted on WPengine) I know the titles are linked, but the client would like excerpts and read more links as well — any chance you have a snippet or something? Thanks!
Hey sky19er,
Thank you for the inquiry.
This should be possible but you may need to directly edit the themes\enfold\config-templatebuilder\avia-shortcodes\events_upcoming\events_upcoming.php file in order to insert the excerpt and read more link in the shortcode. The html can be found starting from line 287 of the said file.
Best regards,
Ismael
Thanks, but apparently I don’t know enough php to make those things show up — if I just drop in the_excerpt(), for example, the excerpt for the post in which I’m displaying the events shows up, but not the excerpts for the events themselves. Any chance you could at least get me started on those events excerpt and permalink snippets? Thanks again.
Hi,
Sorry for the delay. It turned that there is an available filter in that file that we can use to add extra content below the venue info. So instead of editing the file directly, we can just add this snippet in the functions.php file:
add_filter('avf_upcoming_event_extra_data', function($output, $entry) {
$excerpt = get_the_excerpt($entry->ID);
$output .= "<span class='av-upcoming-event-excerpt'>{$excerpt}</span>";
return $output;
}, 10, 2);
You can include more content to the $output.
Best regards,
Ismael
Thanks so much for this, Ismael!
Hi,
Did you need additional help with this topic or shall we close?
Best regards,
Jordan Shannon
Nope, close ‘er up! Thanks.
Hi sky19er,
Great :)
We are closing the thread.
If you need further assistance please let us know in a new one.
Best regards,
Victoria