Post Thumbnail is a theme feature introduced with Version 2.9. Thumbnail is an image that is chosen as the representative image for Posts, Pages or Custom Post Types.

learn more… | top users | synonyms (1)

1
vote
3answers
3k views

Add post thumbnail from external image with plugin

I'm currently writing a plugin modifying the post content with the wp_insert_post_data filter. While doing that I would also like to add a post thumbnail using an external image url. It doesn't really ...
0
votes
1answer
362 views

How do WP know an image is a post thumbnail

What is stored in the WP database to let WP know I uploaded an image as a post thumbnail? I'm looking at the wp_posts table but I can't find anything.
0
votes
1answer
184 views

Best Way to Display Posts by Tag (not category)

I've been researching this, but there are so many choices I'm confused. What I would like to do is display two loops on a static page that: the first loop displays all posts with the tag "featured" ...
1
vote
1answer
151 views

Query the post which have a thumbnail

I've got a highlight section on the header of my website which shows the title and the thumbnail of the last X posts having a thumbnail. Is there any custom query which allows me to retrieve only the ...
0
votes
1answer
773 views

Featured Image Link to next post?

Hello i wonder if anyone knows this is possible? A post featured image click to view next post...? For example.. <a href="next-post"> <?php the_post_thumbnail('post-thumbnails'); ?> ...
1
vote
2answers
464 views

Post thumbnail not working after regenerate

I have this setting in function.php add_image_size( 'thumbnail-gallery', 185, 185, true ); It will display a square picture. Everything is fine before I regenerate new size using "Regenerate ...
4
votes
1answer
340 views

Re-order media links?

I'm trying to re-order the links in the media box when selecting an image. I want to move "Use as featured image" above the insert into post button. I also want to rename the "Use as featured image" ...
8
votes
3answers
1k views

What's the best way to use the Featured Image for responsive web design?

I have a brilliant idea and since WordPress already takes care of some of the work, I just need to find a good method to make this work. I am working on a project that needs to be responsive to all ...
-1
votes
2answers
503 views

How to mark a image attachment as background image?

I am trying to add a functionality to mark a post's attachment id as a background image. Basically, I would like to replicate the post thumbnail functionality: in the image attachment details, the ...
-1
votes
2answers
1k views

Featured images, am I missing something?

* edit * - Pretty new to wordpress here and I've been working on getting post-thumbnails working using featured images...My goal is to quickly apply the featured image as a post thumbnail, regardless ...
1
vote
1answer
3k views

Show current page featured image in sidebar

How do I call the current post's featured image in the sidebar? and if there is none, then a backup image?
1
vote
2answers
419 views

Different thumbnail sizes

Is it possible to set a different thumbnail size for different pages? For example, I want the thumbnails on my category, archive and tag view to be bigger than on my home.php. Right now I have the ...
0
votes
1answer
568 views

WordPress image crop probems

i'm developing a portfolio theme on WordPress 3.2.1, so i created a new post_type called 'portfolio'. My aim is to show, on the front-end, a grid composed by the jobs i realized during last years. ...
2
votes
2answers
1k views

Cropped thumbnail still displaying as full image

Steps to reproduce... 1) Add to functions.php: add_image_size( 'half-size', 200, 200, false ); 2) Add to template file (inside loop): <a href="<?php the_permalink(); ?>" title="<?php ...
0
votes
1answer
1k views

Show post thumbnail only if it exists using timthumb

I am using timthumb as the image size management script throughout my wordpress site but I just noticed that an empty image tag shows up even when there is no thumbnail. <?php ...
2
votes
1answer
473 views

Archive Thumbnail Gallery

I am trying to create a Archive page with a list of all my posts with thumbnail and a small excerpt underneath. kind of like what this guys is doing ...
0
votes
1answer
240 views

featured image metabox MU

I have a MU install, the admin for my main site (site.com) shows the Featured Image Meta Box, but the admin for the subsites (site.com/blog1) the F.I.M.B. is not shown or available in the screen ...
2
votes
2answers
1k views

add_image_size for post type

I currently have this in my functions file, which works as expected: // Enable Post Thumbnails add_theme_support('post-thumbnails'); // Custom Thumbnail Sizes add_image_size( 'square-small-thumb', ...
2
votes
3answers
2k views

Getting custom-sized featured image's URL?

I'm adding additional image sizes to my theme: functions.php add_image_size( 'my-thumbnails', 122, 122, true ); I used to get thumbnails URL like this: ...
3
votes
1answer
4k views

Set post-thumbnail (with php)?

A site I have inherited uses custom fields to set a path for thumbnails. Ideally I'd like to switch this over to use the built in post-thumbnail. Is there a way to procedurally set the post-thumbnail? ...
0
votes
1answer
837 views

Specific Thumbnail Size for Custom Content Type

Is there any solution for setting specific thumbnail size for any custom content type? Thanks.
0
votes
1answer
222 views

WordPress uploads directory. Featured Images storage

WordPress stores all uploads in: /uploads/year/month/ I want to store featured images of my custom post type like: /uploads/myCustomPostType/ No date subdirectories etc. I want all the files to ...
0
votes
1answer
269 views

Using different size thumbnails on different parts of my site… with functions.php?

Two years ago in StackOverflow there was an interesting question about using specific thumbnails, small, medium or large images on different parts of the site. The question, available here, was well ...
2
votes
2answers
1k views

How can I make post fields required in Wordpress?

I am setting up a Wordpress site as a CMS and trying to figure out a way to make certain post fields "required" before an author can publish a post. In particular, I want authors to be required to ...
10
votes
2answers
5k views

Setting a post's featured image from an embedded YouTube video

If I create a post that has an embedded YouTube video in it (so all I do is paste the YouTube URL into the post and let Wordpress automatically embed it for me), is there a way to have the thumbnail ...
2
votes
1answer
1k views

Check for featured image in WP_Query

Is there a way to filter posts by featured image when initialising a WP_Query object? Example $my_query = WP_Query(array("has_thumbnail"=>true)); or, more ideally $my_query = ...
0
votes
1answer
548 views

Link to larger thumbnail in custom query (with custom post-types)

I'm using a custom query with custom post-types to display a blog-archive for my brothers photography-website. I integrated this code to link to the larger version of the thumbnail. Sadly it doesn't ...
3
votes
1answer
3k views

how do I determine which image is the featured image in the database

I've queried all children of the post, and two records are shown. This is ok because there are 2 images in the gallery, but I can see no field in the database which makes it clear which one is the ...
0
votes
1answer
359 views

How to add thumbnails to posts?

I am using the latest version of WordPress with the Twenty Ten theme. How can I add thumbnails to each of my posts? A step-by-step guide would be helpful in this regard.
0
votes
2answers
540 views

Featured Images on Front Page

I currently have a static front page and a /blog. My goal is to have the front page be a grid of hand selected images (similar to a portfolio). I would like to be able to easily switch the images are ...
2
votes
2answers
4k views

How to remove “featured image” functionality from a custom post type?

I have made a custom post type for a child theme. I removed "thumbnail" from the supports array in functions.php and that prevents a featured image meta box from being displayed. However, when in the ...
1
vote
1answer
3k views

Add url from Custom Field as 'Featured Image'. Code not working

I'm trying to migrate a site to WP. We have a whole bunch of pictures, and I have done some research and figured -- I think -- my best bet is a CSV import of the data, storing the relative URL of the ...
1
vote
1answer
2k views

the_post_thumbnail() Custom sizes not display correctly

I'm trying to display wide image icons from the_post_thumbnail() function. I'm using 'true' value for cropping, but they are not cropped well... I get some strange results with different sizes (I'm ...
0
votes
1answer
3k views

get_the_post_thumbnail() returns nothing?

Here's my code: function widget($args, $options) { extract($args); global $post; $post_type = $options['post_type']; $num_of_posts = $options['limit']; // Create a new ...
0
votes
1answer
111 views

Getting top Image From the Gallery and printing out a thumbnail with Exact Dimensions

I'm looking for a plugin that pulls an Image from a Wordpress Posts Gallery (Note NOT the Featured Thumbnail, we have thousands of posts and can't retroactively go back and set a Featured image for ...
5
votes
2answers
3k views

Using add_theme_support inside a plugin

I've created a custom post type as a plugin and released it into the repository. One of the core features involves using a featured image. I've added thumbnail to $supports in register_post_type(), so ...
3
votes
3answers
684 views

Any easy way to automatically set the first inline image in a post as the thumbnail?

Is there a plugin for this? Has anyone done it before?
1
vote
1answer
3k views

get_the_post_thumbnail ignores my default thumbnail size [closed]

My default thumbnail size is 150x150. Therefore, if I use a custom thumbnail size, such as 75x75 it should use the thumbnail of 150x150 and shrink to fit to my size: get_the_post_thumbnail( ...
0
votes
1answer
744 views

Three Questions with Twenty Eleven theme

I have a few things that I need help with in Twenty Eleven. The logo I put in the header is resized to 578px by 160px, when it is supposed to be 326px by 90px. I would like to simply the php code ...
1
vote
1answer
968 views

Featured image thumbnail sometimes in content, sometimes changes header images

I am using wordpress 3.1 and when I use the featured image metabox to upload sometimes I see in my posts the image as part of the content and sometimes the header image changes as well. I cannot ...
0
votes
1answer
174 views

How to regenerate image thumb with size that is specified in media section

I have 500x300 sized images in my all post and want 280x177 sized images to display in index page for all the post. I used regenerate thumbnails and AJAX thumbnail rebuild plugin which builds images ...
0
votes
1answer
576 views

query_posts thumbnail condition

I am trying to call in all posts in the current category, showing their thumbnail or 'featured image'. The code below does not work, it throws out a syntax error... <?php $temp_query = ...
1
vote
1answer
130 views

Wordpress thumbnail settings change

I have a very large Wordpress image bank (over 600 images, all in use...!) and a new development will mean that i would like to change some of the thumbnail settings. I have at the moment ...
1
vote
2answers
6k views

How do you remove hard coded thumbnail image dimensions?

How can I remove the width and height attributes from the post_thumbnail when inserting with <?php the_post_thumbnail(); ?>? <img width="800" height="533" ...
1
vote
5answers
4k views

Featured Image missing in Wordpress 3.2 Admin

I've just upgraded from 3.1.2 to 3.2, and now "featured image" is no longer listed at the bottom right of a post in admin. Has this feature of WP been removed? Can it be added back, or turned back ...
4
votes
2answers
2k views

Post thumbnail outside the loop

I'm trying to get the post thumbnail in the sidebar which is in essence outside the loop. For some reason it seems impossible!!! I have tried all kinds of ways. Here is the wirking code: (I have ...
0
votes
1answer
168 views

Getting only the URL of the post thumbnail

I wish to do something as simple as the_post_thumbnail('large') but I want the URL of the image only, not the HTML which goes with it. Is that possible ?
0
votes
2answers
230 views

custom image size not being fetched

I'm developing a theme for a customer in which i need several versions of the same image. In my functions.php file i've added all the image sizes i need. For instance: if ( function_exists( ...
4
votes
4answers
2k views

What is your take: TimThumb vs. WordPress Thumbnails? The great debate [closed]

When it comes to excerpts, do you believe TimThumb or WordPress thumbnails is the way to go? And why? Answers will not be graded (but may be criticized).
-1
votes
1answer
1k views

Custom field for image, not showing image!

In wordpress 3 you can create your own custom content types (without plugins) natively. I have done this and created a new "add image" field. However, I'm having trouble displaying this image in my ...