[Plugin: Viper's Video Quicktags] Only Preview Images shown, no Video? (4 posts)

  1. Navjot Singh
    Posted 6 years ago #

    I am using the following code to retrieve posts and show only plugin shortcodes as videos(don't want to show complete post and mess up):

    $pattern = get_shortcode_regex();
    $pattern = str_replace('(.?)', '', $pattern);
    $pattern = str_replace('2', '3', $pattern);
    $content = $post->post_content;
    $shortcodes = preg_replace("/.*($pattern).*?/s", '$1', $content);
    echo do_shortcode($shortcodes);

    Now the problem is that shortcodes do get parsed but instead of loading the video, it shows only the preview image. Video is not shown. Here's the demo: http://www.geneliaonline.in

    I tried disabling the option: Only load the Javascript file if it's needed. Disable this to post Quicktime videos in the sidebar text widget. but this did not help.

    How to fix this?

  2. There is a the_content filter that runs late and outputs the SWFObject Javascript. Without it, embeds won't work.

  3. Navjot Singh
    Posted 6 years ago #

    So any solution to display the video in sidebar too instead of only thumbnail?

  4. Just drop the shortcode into a text widget.

    Or do this:

    <?php echo apply_filters( 'the_content', '[youtube]blah[/youtube]' ); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic