Plugin Author
Franky
(@liedekef)
See if this works:
remove_filter( ’eme_notes’, ‘wpautop’ );
Awesome, that worked! Thanks.
Also, with this I was able to limit the excerpt automatically without having to do the read more tag with the following. Please let me know if you think this might create any other issues.
function notes_truncate($content)
{
return substr($content, 0, 55);
}
add_filter(’eme_notes’, ‘notes_truncate’);
Plugin Author
Franky
(@liedekef)
Well, that’ll work, but the problem is that it might influence the single event output too (not just the excerpt).
I should just add a new filter for the excerpt. Let me think on that …
Or: create a feature request on http://www.e-dynamics.be for this and point to this thread
Thanks. If it doesn’t make it into a future feature I posted below what I ended up doing to place a conditional on a specific page to truncate. Just in case others want to do something similar. It seems to be working well.
function notes_truncate($content) {
if ( is_front_page() ) {
return substr($content, 0, 55);
}
else {
return $content;
}
}
add_filter(’eme_notes’, ‘notes_truncate’);