16am
Forum Replies Created
-
Incognito mode worked for me!
Forum: Fixing WordPress
In reply to: Featured Image Not Working in WP 3.6Hi, 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!
CiaoForum: Plugins
In reply to: [YOP Poll] Italian TransaltionHi!
Where can I download the italian translation file?
Thank you!!
Forum: Plugins
In reply to: Video OR Featured Imagethis 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 Imagethis 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 Imagethis 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 Imagethis 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() ?>