FitVid not working for iframes on particular theme install
FitVid not working for iframes on particular theme install
FitVid not working for iframes on particular theme install
WordPress supports quite a few embeds including YouTube since WordPress 2.9. To render anywhere, just pass your content through the_content filter and it should automatically convert the urls. $oembedContent = apply_filters( ‘the_content’, $basicContent ); If the defaults don’t meet your needs you can add an oEmbed-Enabled site using wp_oembed_add_provider( $format, $provider, $regex ) or add … Read more
Page will only display first 6 videos
WordPress has this little minimally documented function, wp_video_shortcode() Just pass an array with the necessary information as if you were writing out the shortcode.
Each video can have different aspet ratio, that is totally normal. Normally, the theme set a global $contnt_width to set the max width for embeded content and the height is auto. For exampl: if ( ! isset( $content_width ) ) { $content_width = 700; } If you need to set a specific width and height … Read more
Why doesn’t WordPress make thumbnails for videos?
You can manually add a thumbnail with the shortcode by making use of the poster attribute. If you want to do it automatically, then you have to implement FFMPEG or LIBAV first, meaning they would have to be available on your server. Afterwards you could hook into wp_generate_attachment_metadata and automate process – I have given … Read more
Get video attachment ID and display length
I found the reason this was not working was because of a conflict with another plugin that was preventing the page from refreshing properly if the user was not logged in.
I have created a working solution to this. I wrapped the JavaScript in a DIV. All other content is automatically wrapped in paragraph tags. In archive.php, I have it pull the most recent post in the section where I want the video. In the CSS, I have set display:none to the paragraph tags. Thanks everyone!