Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Franky

    (@liedekef)

    See if this works:

    remove_filter( ’eme_notes’, ‘wpautop’ );

    Thread Starter WPWanderer

    (@wpwanderer)

    Awesome, that worked! Thanks.

    Thread Starter WPWanderer

    (@wpwanderer)

    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

    Thread Starter WPWanderer

    (@wpwanderer)

    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’);

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Excerpt wrapped in p tag….’ is closed to new replies.