Forums

WPvideo And The Excerpt (8 posts)

  1. saphod
    Member
    Posted 1 year ago #

    Hi!

    I am using WPvideo to include Youtube videos. Works like a charm on the_content()...

    ... does NOT work on the_excerpt(), though...

    I tried to add a filter [add_filter('the_excerpt', 'wpvideo')] at the bottom line of the plugin, but that doesn't change anything.

    Somehow, the tags [video]...[/video] are stripped of... I thouhgt the_excerpt() would only strip of "<tag></tag>" tags.


    Kimili Flashembed
    works perfectly and shows everything inside the_excerpt(), but it uses 'template_redirect' as action and uses ob_start().

    Does anyone know how to get WPvideo to show videos in excerpts?

    Thanks!

  2. saphod
    Member
    Posted 1 year ago #

    OK, I'll try to rephrase my question:
    Why do the [video]...[/video] tags not appear when using the_excerpt()?

    Any help on this would be appreciated.

  3. RogerTheriault
    Member
    Posted 1 year ago #

    Is this on WP 2.5?

    Maybe the shortcode filter is running sooner, and the priority needs to be bumped up. There are probably several filters running on your content and excerpt. Something must be removing those tags.

    The plugin author may want to try using the shortcode system built in to WP 2.5, when the plugin is installed in a WP 2.5 system. Then priorities won't matter.

    And don't forget to ask the plugin author directly, if that's possible. I'm sure he or she would want some user feedback.

  4. saphod
    Member
    Posted 1 year ago #

    I am still using WP 2.3.3, so no shortcode system yet.

    Already contacted the plugin author, but no answer yet.

    :'-(

  5. RogerTheriault
    Member
    Posted 1 year ago #

    Try adding a priority option to the filter call you added, to give it a priority so it gets called sooner than other filters. But be careful, later filters may strip off the <embed> tags.

  6. saphod
    Member
    Posted 1 year ago #

    Tried priority "1" already, doesn't work - thanks, anyway. ;-)

    As I said:
    I do not understand why the tags aren't even showing up. I thought only real HTML tags in brackets like "<>" would get stripped...

    Still no answer from the plugin author. :'-(

  7. RogerTheriault
    Member
    Posted 1 year ago #

    Just for fun, try 11 instead of 1. Who knows...

  8. saphod
    Member
    Posted 1 year ago #

    Didn't work, either.

    Also tried "get_the_excerpt" as filter... no luck. :'-(

    It's funny:
    I use [Update from ....] in posts when I want to show I updated it... that - although in brackets like "[]" - is always shown.

    Only "[video][/video]" seems to be stripped.
    Funny...

    Maybe, I'll have to check the plugin how it is really working.

Topic Closed

This topic has been closed to new replies.

About this Topic