In the file the-events-calendar\src\functions\template-tags\general.php
there is a function, tribe_events_get_the_excerpt, that is stripping out the embedded HTML within my Event Post.
I’d like to keep the formatting I’ve laid out, but there is a line of code that strips the HTML
// Now we actually trim it
$excerpt = wp_trim_words( $excerpt, $excerpt_length, $excerpt_more );
Later in the code (a couple lines down), there is a call to
// Remove “all” HTML based on what is allowed
$excerpt = wp_kses( $excerpt, $allowed_html );
but at this point, the variable $excerpt has already been stripped of the HTML, so the variable $allowed_html is not doing anything.
Suggestions? Is there a fix?
Apparently, I can’t setup an override to the general.php function “tribe_events_get_the_excerpt”, so I’ve been modifying the underlying code, but then this gets overwritten on the next update.
What do you suggest?
…joel