WordPress.org

Ready to get started?Download WordPress

Forums

Viper's Video Quicktags
video not displaying when viewing inside category (just link) (6 posts)

  1. 4culture
    Member
    Posted 3 years ago #

    When I look at the post displayed singly or within the main page of the blog, the video works fine.

    But when viewing it inside a category, all I get is the link.

    The post in question is "seattle to portland on a bike-car with no gears"

    Any idea why?

    thanks!

  2. Alex Mills (Viper007Bond)
    Moderator
    Plugin Author

    Posted 3 years ago #

    It looks like you're using the_excerpt() in your category view which strips out all HTML tags.

  3. 4culture
    Member
    Posted 3 years ago #

    Which file do I change and what do I change the_excerpt() to?

    thanks!

  4. Alex Mills (Viper007Bond)
    Moderator
    Plugin Author

    Posted 3 years ago #

    It depends on your theme, but probably archives.php and you change it to the_content().

  5. 4culture
    Member
    Posted 3 years ago #

    That shows the video but it also shows the whole story instead of just an excerpt. Is there a way around this?

    And what's also odd is that the youtube videos show up fine, it's the vimeo ones that just have a link in category view.

    thanks!

  6. Alex Mills (Viper007Bond)
    Moderator
    Plugin Author

    Posted 3 years ago #

    You can't have your cake and eat it too (for the most part). the_excerpt() displays the first 55 words of your post with all HTML stripped.

    However you can manually create an excerpt using the excerpt box or by using the "more" button.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic