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)

0
votes
1answer
84 views

How can I check for a thumbnail in WordPress?

How can I can I check if a post has a thumbnail and if does do something? If doesn't do something else. This is what I have: <?php if (has_post_thumbnail()) ?> <?php the_thumbnail(); ...
0
votes
2answers
292 views

How can i make this in the_post_thumbnail?

if I add this code in my theme function.php add_image_size('thumb' , 130, 65, true ); // Thumb add_image_size('max' , 610, 305, true ); // Maximum add_image_size('min' , 270, 135, true ); // ...
0
votes
1answer
1k views

How to display Post title By ID and its Thumb Contents

Hello i'm trying to display a Post Title by its ID and its thumb content, I have I code but this displays everything, all I want is post title,its category and a short content of that post. I have a ...
0
votes
1answer
677 views

Post Thumbnails on Sidebar Widgets

How do I get my post thumbnails to show up on the recent post widget or a commenter's avatar to show up on the recent comments widget?
2
votes
1answer
377 views

Set WordPress Featured Image For All Post Slugs Matching Image File Name in Specified Directory

I have a bunch of old posts on a blog that I would like to assign a featured image to. I have retrieved all the images I would like to use for each post. I saved each image file name after the slug ...
0
votes
2answers
144 views

Moved server, and WP now uses original images for all thumb sizes?

I just moved servers. When calling wp_get_attachment_image() or any of its sister functions the image returned is always the full-size image, scaled down, instead of the requested thumbnail size. ...
0
votes
2answers
3k views

Enable featured image but not have it show up?

I am using the latest default Twenty Eleven on WordPress 3.3.1 My post has a featured image (the smaller one, which 1 is pointing to), and I would like it not to appear in my post. It has already ...
0
votes
1answer
199 views

Selectively hiding or allowing thumbnails of featured images on front page

I need a way to selectively hide or allow thumbnails of featured images to appear on the front page of my site. Ideally, it would be a custom field on each post, where I could choose - for example - 1 ...
0
votes
1answer
82 views

include w_thumbnail_src in function?

I got a function that automatically creates a custom field in the post. I have this located in my functions.php. Image is the name of the custom field and HERE is the value. How can I put the ...
1
vote
1answer
3k views

Migrating problem - featured images

I'm trying to migrate a WP install using default export and import tool. Everything is peachy except featured images. For my post thumbnails I'm using default Featured Image option with 7-8 ...
1
vote
1answer
151 views

How do I Add images uploaded in the post to a default custom field

I'm trying to add the URL of the post images in to a default custom field. Here is the code I got so far... Here is how I add the default custom field: add_action('wp_insert_post', ...
0
votes
2answers
1k views

Add image URL automatically to custom field?

Does anyone know how I automatically add the URL of the uploaded image to a custom field? In other words, When I upload a image I want the url to the image to get a custom field variable ...
0
votes
1answer
782 views

Where in functions.php to add this code so thumbnail images display?

Thumbnail images are not displaying by blog excerpts on my blog at http://richardclunan.com/blog/ -- I found some code that I think I might need to add to functions.php to make this happen, and if I ...
0
votes
1answer
1k views

How to add thumbnail images? (Set Featured Image doesn't work)

How do I add thumbnail images to the list of blog posts at http://richardclunan.com/blog/ ? When I'm creating or editing a blog post, if I use the Featured Image link at the bottom right in the admin ...
9
votes
3answers
26k views

How do I set a featured image (thumbnail) by image URL when using wp_insert_post()?

While looking through the function reference entry for wp_insert_post(), I noticed that there's no parameter in the array it requires which will allow me to set the 'Featured Image' for a post, ...
2
votes
1answer
500 views

Add a featured image in my theme?

I'd like to add a Featured image to a default article or a Custom Type Post in my theme but I don't get the area of the highlight image, why? In the default theme the option is present but not in my ...
0
votes
3answers
6k views

Thumbnail Cropping with add_image_size?

I want my thumbnails on a particular page to be 300px × 100px, exactly. Currently, images shrink until they hit the 300 pixel or 100 pixel mark. How do I get the image to crop to exactly 300 ...
2
votes
1answer
1k views

List category posts - Thumbnails are not displaying

we've been using List Category Posts to display different category posts on one page and it was working great until recently when the thumbnail images disappear. The 'thumbnail=yes' option is there. ...
0
votes
3answers
3k views

How can I get a different image size, if all I have is the link?

For various reasons, I can't use Wordpress' built-in Thumbnail functionality. What I want to do instead is to use the first image in the post as the thumbnail. Here's what I found in the codex: Show ...
1
vote
1answer
944 views

Exclude featured image from gallery code stops Lightbox from working

I was looking for a solution to exclude the featured image/thumbnail in each post, so I found this great piece of code and added it to functions.php. It worked perfectly except for one thing: it ...
0
votes
1answer
1k views

featured images twenty eleven theme

Iv'e implemented the theme to have the featured post at the top display as a full post and the rest of the posts below display as excerpts but now my featured images aren't showing up. Im new to PHP ...
4
votes
1answer
2k views

How to add a 2nd “featured image” to a post?

My theme has a slider widget that allows the end user to select a category and it assigns the posts in that category to the slider. If a post has a featured image, its used as the background of the ...
1
vote
3answers
3k views

How do I set the default “feature image” size?

I know I can set up post, pages, and custom post types to use featured images in wordpress by enabling theme support: add_theme_support( 'post-thumbnails'); Or enabling theme support for a specific ...
3
votes
1answer
571 views

Custom post type thumbnail / Media Library WP_DEBUG notice [closed]

My custom post type thumbnail appears to be working correctly. However, when I return to edit one of my species profiles (in the Admin area, not talking about the front-end here), the following text ...
0
votes
1answer
867 views

the_post_thumbnail not resizing

I'm using the following code: <?php if (the_post_thumbnail()) : ?> <div class="thumbnail"> <?php the_post_thumbnail('thumbnail'); ?> </div> <?php endif; ?> ...
0
votes
1answer
206 views

Trying to show link “Use as featured image” from Attachment window from t31os script

i found this great script from t31os that give me the chance to hide fields and buttons when we have to add images on a post in wordpress. function myAttachmentFields($form_fields, $post) { // Can ...
3
votes
1answer
8k views

wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); Getting thumb from wrong loop

I am using a plugin which sets the thumbail for your fb share image. The src is <?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?> Which was working fine, but not ...
1
vote
1answer
1k views

Create custom thumbnail size on existing posts

I'm applying a new theme to my site, and the theme has a custom thumbnail size. I realize that add_image_size() does the work of creating the custom thumb whenever a new post is created. This in ...
3
votes
2answers
360 views

PHP/Manual use of images? - 2 Questions

I've made a quick PHP script/page that uses the wp_insert_post() function to insert a post directly. And this works great. The post I am manually adding has an image in it, so I firstly ...
1
vote
2answers
114 views

For homepage images (for small business website), is it better to use custom fields or post_thumbnail?

Already searched on here and couldn't find question so forgive me if it's been asked. I'm trying to use dynamic images on a homepage so my client can maintain the images. I've seen tutorials where one ...
1
vote
1answer
324 views

Change headline text for post thumbnail meta box

How can I change the headline text for the post thumbnail meta box in the edit post screen?
1
vote
1answer
890 views

Custom Image Thumbnails of Different Sizes

I have a Custom Post Type which contains custom fields for uploading images of different types for a portfolio site. For example: (logos, websites, print-ads, etc...). I plan on uploading images of ...
3
votes
1answer
8k views

How can I add the featured image functionality to a custom taxonomy?

I would like to be able to use the 'featured image' functionality, found on post types, for a custom taxonomy. I have a taxonomy called 'collections' and I would like each collection to have a ...
8
votes
7answers
5k views

Get post thumbnail size

I know how to set the size of an image type: set_post_thumbnail_size( 150, 150 ) ..or using the media settings, but how do I get the image with and image height that have been set for an image ...
8
votes
1answer
1k views

How to disable generation of default image sizes for some custom post types?

I used custom post type, where 'thumbnail', 'medium' and 'large' sized not required. I need to disable this sizes and create function or plugin, where i can set, which image size is required for each ...
2
votes
1answer
815 views

Change Output for Images in Content

I want to wrap some html (divs and classes) around the tag (to create the appearance of photo corners by way of an image sprite). Basically, I want to re-write all tags added by WP in the content ...
3
votes
7answers
7k views

the_post_thumbnail hard cropping not working no matter what

No matter what I do - I can't get the hard cropping mode in the_post_thumbnail to work. Here's what I have: add_image_size( 'Blog', 300, 300, true ); the_post_thumbnail('Blog'); I've also tried: ...
0
votes
2answers
2k views

Images will not attach to posts after site migration

I recently migrated a WordPress install from a subdirectory to the root. After the migration everything worked great, except that I can no longer set a featured thumbnail or add a picture in the ...
0
votes
1answer
1k views

Get all images from posts with maximum number and without featured image

I recently asked a question on how to get all images from all posts - and I got a working answer, but unfortunately the code gets post-thumnbnails as well, and I didn't find a way to limit the number ...
1
vote
1answer
797 views

Featured image for first post only

I'm currently having some difficulties showing a featured image for the first post only. Currently the image only shows if the post is the only post or if the post is a sticky post. (I realize this ...
1
vote
3answers
557 views

Bind to WPSetAsThumbnail

is there a way to bind some extra script to the WPSetAsThumbnail function? the function automatically inserts the image into the post's metabox, but what if i wanted to do something else with it? ...
0
votes
2answers
2k views

Multiple Post Thumbnails Plugin - Need help with code

I am having problems getting this plugin to run but have had little success getting it to work, even after reading past entries. I would be grateful if you could see if the code is right. Code in ...
8
votes
1answer
3k views

How to Dynamically Resize WordPress Image On-The-Fly (custom field/theme option)

So - at a client's request, I am in need of being able to resize an image not the standard WordPress way... but from an image pulled-in from a theme option. I can't simply use the custom_header area, ...
0
votes
1answer
178 views

Source problem for children page image

I have this problem and maybe you can help me. I want to get a list of all children pages from page (with id 20) and then get the featured image from each one and resize with Thumbnail. Right now I ...
0
votes
3answers
676 views

There is no featured image in my post in wordpress multisite theme [closed]

I have a multi-site word press theme and it has front page as post pages and i have inserted also the featured images in particular post , but it didnt appear the images still. After all there is ...
0
votes
2answers
353 views

How to add image for all posts associated to specified category?

simply i want to add image beside every post depend on the category something like that http://network.smashingmagazine.com/ you will see there is an image beside every post, i want it to be related ...
0
votes
1answer
213 views

add featured image dialog box disappear

I have a test site here (with WordPress 3.2.1) Since I activate the multisite support, the add featured image disappear. I try to deactivate all the plugin and activate the default theme (twenty ...
0
votes
2answers
2k views

Unable to set Custom “Link URL” for Featured Image, and More?

I have an issue that I believe can be solved one of two ways. I am using Featured Images in posts for content on a home page slider. What I would like to have happen is to have the destination links ...
1
vote
1answer
3k views

Set featured image size for a custom post type

I have a custom post type, and I'm adding support for thumbnails (featured image) register_post_type('cp_companies', array( 'labels' => array( 'name' => ...
0
votes
1answer
408 views

Plugin to hide image in excerpt

I was looking for a plugin that will enable me to hide an image on the excerpt, but show it on the single post view. Anyone knows if there is any?