Post thumbnails not working in my new install of WP 3.1 with Twenty Ten theme

The featured image meta box is enabled under following conditions: if ( current_theme_supports( ‘post-thumbnails’, $post_type ) && post_type_supports( $post_type, ‘thumbnail’ ) && ( ! is_multisite() || ( ( $mu_media_buttons = get_site_option( ‘mu_media_buttons’, array() ) ) && ! empty( $mu_media_buttons[‘image’] ) ) ) ) add_meta_box(‘postimagediv’, __(‘Featured Image’), ‘post_thumbnail_meta_box’, $post_type, ‘side’, ‘low’); So check that: nothing messes … Read more

Show Multiple Size URL of one Featured Image/Thumbnail?

no problem to have 2 or more post thumbnails of different sizes. but what is the “ref” attribute ? do you mean “rel” ? anyhow – example from the :codex <?php if ( has_post_thumbnail()) { $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), ‘large’); echo ‘<a href=”‘ . $large_image_url[0] . ‘” title=”‘ . the_title_attribute(‘echo=0’) . ‘” >’; the_post_thumbnail(‘thumbnail’); echo … Read more

Set Post Thumbnails in Percents

This is not possible, images must have real absolute sizes 🙂 A post thumbnail is essentially a different sized version of the image. While you can calculate how much for example 70% of 1024 is, and genereate a ~700px wide image, you cannot do this for each of your visitors. It would kill your host’s … Read more

How do you create a custom template to display a category with an image and related posts below?

I am not sure I understand exactly the problem, but If I do – there is absolutely no need for a custom post type. all you have to do is use multiple loops and basically divide the query into sub-loops for each category . <div id=”cat-1″> <?php query_posts(‘cat=1&posts_per_page=5’);// put relevant category and number of posts … Read more