Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Incognito mode worked for me!

    Hi, I had the same issue on my theme.

    In my functions.php file I searched for this line:
    add_theme_support(‘post-thumbnails’, array(‘post’,’flv_portfolio’));
    which I changed into:
    add_theme_support(‘post-thumbnails’, array( ‘page’, ‘post’,’flv_portfolio’));

    Basically I just added ‘page’ in the array.

    Hope this help!
    Ciao

    Hi!

    Where can I download the italian translation file?

    Thank you!!

    Forum: Plugins
    In reply to: Video OR Featured Image

    this worked for me!

    function catch_video() {
      global $post, $posts;
      $first_vid = '';
      ob_start();
      ob_end_clean();
      $output = preg_match_all('/<iframe.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);
      $first_vid = $matches [1] [0];
      echo '<iframe width="450" height="310" src="';
      echo $first_vid;
      echo '" frameborder="0" allowfullscreen></iframe>';
    }
    Forum: Plugins
    In reply to: Video OR Featured Image

    this worked for me! it gets the first video (iframe) and it displays the player in the loop.

    this in function.php of my theme:

    function catch_video() {
      global $post, $posts;
      $first_vid = '';
      ob_start();
      ob_end_clean();
      $output = preg_match_all('/<iframe.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);
      $first_vid = $matches [1] [0];
      echo '<iframe width="460" height="320" src="';
      echo $first_vid;
      echo '" frameborder="0" allowfullscreen></iframe>';
    }

    and this goes in the loop:
    <?php echo catch_video() ?>

    Forum: Plugins
    In reply to: Video OR Featured Image

    this worked for me! it gets the first video (iframe) and it displays the player in the loop.

    this in function.php of my theme:

    function catch_video() {
      global $post, $posts;
      $first_vid = '';
      ob_start();
      ob_end_clean();
      $output = preg_match_all('/<iframe.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);
      $first_vid = $matches [1] [0];
      echo '<iframe width="460" height="320" src="';
      echo $first_vid;
      echo '" frameborder="0" allowfullscreen></iframe>';
    }

    and this goes in the loop:
    <?php echo catch_video() ?>

    Forum: Plugins
    In reply to: Video OR Featured Image

    this worked for me! it gets the first video (iframe) and it displays the player in the loop.

    this in function.php of my theme:
    function catch_video() {
    global $post, $posts;
    $first_vid = ”;
    ob_start();
    ob_end_clean();
    $output = preg_match_all(‘/<iframe.+src=[\'”]([^\'”]+)[\'”].*>/i’, $post->post_content, $matches);
    $first_vid = $matches [1] [0];
    echo ‘<iframe width=”460″ height=”320″ src=”‘;
    echo $first_vid;
    echo ‘” frameborder=”0″ allowfullscreen></iframe>’;
    }

    and this goes in the loop:
    <?php echo catch_video() ?>

Viewing 7 replies - 1 through 7 (of 7 total)