Video playing from featured image?

It happens that I answered a similar Question. And adapting it a little bit, some serious magic can happen 😉 Notes: the CSS is being printed inline. It should go with the theme’s style.css and be adapted accordingly. each Featured Image is encapsulated in a div with id=”videocontainer-‘ . $post_id . ‘”. and a Javascript … Read more

Display featured image file size, extension, filename, type, orientation?

Question 1: use wp_get_attachment_metadata in the Codex or the search function on this forum! Question 2: Put this in one of your functions. It will echo the Alt text for the image. $img_id = get_post_thumbnail_id( get_the_ID() ); //Note: you may need other methods to get id $alt_text = get_post_meta( $img_id, ‘_wp_attachment_image_alt’, true ); if (!empty … Read more

specify size of post preview image (not post thumbnail)

In this case I would add image size in functions.php which registers new image size in my theme and get the re-sized image. Example: Register custom image size (functions.php) if ( function_exists( ‘add_image_size’ ) ) { add_image_size( ‘custom-image’, 440, 265, true ); //(cropped) } Get custom image size (functions.php) function get_custom_image(){ global $post, $posts; $args … Read more

remove and disable image link in functions.php

A little late to this party but it seems the OP wants to (1) prevent these WP Selfies from recurring and (2) remove existing WP Selfies. Here is a great filter to prevent it from happening in the future: http://andrewnorcross.com/tutorials/stop-hyperlinking-images/. And I just posted a snippet that removes existing self linking images here: http://cfxdesign.com/remove-existing-self-linking-images-in-wordpress/.

Original image not saving?

The default image sizes of WordPress are “thumbnail”, “medium”, “large” and “full” (the size of the image you uploaded). These image sizes can be configured in the WordPress Administration Media panel under Settings > Media. This is how you can use these default sizes with the_post_thumbnail(): the_post_thumbnail(); // without parameter -> ‘post-thumbnail’ the_post_thumbnail( ‘thumbnail’ ); … Read more