Thumbnail and Featured Image With Fixed Sizes?

For this situation, you should use add_image_size. You can find more info about it in the codex. What add_image_size does is register new sizes for your thumbnails, so you can use them with the_post_thumbnail (and other functions). Here´s the example from the codex: if ( function_exists( ‘add_image_size’ ) ) { add_image_size( ‘category-thumb’, 300, 9999 ); … Read more

Cannot get post thumbnails to display

Last I checked (meaning, it may have been updated in 3.5 and I just haven’t noticed), passing an array for an arbitrary image size hasn’t worked since before WordPress 3.0. You have to pass a pre-defined image size. Try: Define your custom image size: add_image_size( ‘some-custom-name’, 150, 150, true ); (called along with add_theme_support( ‘post-thumbnails’ … Read more

How to List Thumbnails based on Custom Categories

You need to use custom post and make the categorys there and align the thumbnails in each post. <?php // query post type */*/ global $post; $args = array( ‘post_type’ => ‘YOUR-POST-TYPE-HERE’, ‘cat’ => $category, ‘suppress_filters’ => ‘0’, ‘numberposts’ =>’-1′, ‘orderby’ => ‘title’, ‘order’ => ‘asc’, ‘post_status’ => ‘publish’ ); $myposts = get_posts( $args ); … Read more

How to get Poster (thumbnail) Image of Video

Your video does not appear to be “attached” to the page, hence the 0 as post_parent. And your query arguments do not restrict the results to any particular page. You won’t be able to use the normal thumbnail functions. You will have to use something like wp_get_attachment_image to get the thumbnail, if you have a … Read more