bullets being removed from Events Calendar list page descriptions

Home Forums Ticket Products Event Tickets Plus bullets being removed from Events Calendar list page descriptions

Viewing 5 posts - 1 through 5 (of 5 total)
#1101695
Hunter
Moderator

Hello,

Have you reverted back to the default WP theme and deactivated all other plugins than ours as outlined in our Testing for conflicts guide?

Thanks for choosing PRO and have a good day 🙂

#1102080
Anthony
Participant

Yes.

In /the-events-calendar/src/views/list/single-event.php, on line 69, tribe_events_get_the_excerpt() is getting called. This looks to be what’s filtering out the li’s and br’s. Is there a way to turn this off?

Thanks,
Jon

#1102673
Hunter
Moderator

Hi and welcome back,

After some testing and communication with fellow support team members, we came up with a solution to allow bullet points to display in the event excerpt. I’ve brought this thread to our developers attention to reference. Thanks for bringing this to our attention and hang tight for maintenance release info.


add_filter( 'wp_trim_words', 'tribe_preserve_html_in_excerpt', 10, 4 );

function tribe_preserve_html_in_excerpt( $text, $num_words, $more, $original_text ) {

remove_filter( 'wp_trim_words', 'tribe_preserve_html_in_excerpt', 10 );

$excerpt = force_balance_tags( html_entity_decode( wp_trim_words( htmlentities( $original_text ) ) ) );

add_filter( 'wp_trim_words', 'tribe_preserve_html_in_excerpt', 10, 4 );

return $excerpt;
}

#1108838
Support Droid
Keymaster

This topic has not been active for quite some time and will now be closed.

If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘bullets being removed from Events Calendar list page descriptions’ is closed to new replies.