krill3
Forum Replies Created
-
Forum: Plugins
In reply to: [Featured Video Plus] Custom post class on posts with featured videos?Ah, used the nuclear option to get it to work (jQuery to check size of parent on load, switched iframe’s width to equal that, height to be 9/16 of height if that makes sense) less elegant but it works.
Forum: Plugins
In reply to: [Featured Video Plus] Custom post class on posts with featured videos?Doh, sorry didn’t spot that, works a treat:
<?php if (has_post_video($post->ID)): ?> <?php the_post_video();?> <?php elseif (has_post_thumbnail( $post->ID ) ): ?> <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); ?> <?php endif; ?> <div class="overlayImg" style="background-image: url('<?php echo $image[0]; ?>')">
Shows the video if there is one, otherwise the image as a background of a div.
Only one question remains: “When using auto the video will be adjusted to fit it’s parent element while sticking to it’s ratio.”
How do you get that to work with “the_post_video();” ? I set div.featured_video_plus to be 1000px wide and the div it loads into as well, player is still 560x3xx much appreciate the support, very nicely made plugin (I’m just very good at php etc, I’m a front-end guy)
I got the same issue, however the fixes above don’t work, and I don’t have wp-simpleviewer.
NextGEN Gallery 1.1.0
Wordpress 2.7.1anyone got any idea why this is happening?
Forum: Fixing WordPress
In reply to: Comments jumping one post / Not working.Oh and yes it thinks the post that the comment should appear on got the comment. If I posted the comment to p19 it appears on p20, on the main page it claims p19 has one comment and p20 doesn’t have any, while it’s actually the opposite.