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
1answer
470 views

A good way to add a different background image for each page?

I'm working an a Thematic child theme wherein I need to have a unique image decorating each of the site's main pages, from a pre-defined set of permanent images. It would also be ideal to have one of ...
1
vote
3answers
8k views

Remove title attribute from images

I'm looking for a way to remove the title attribute from images, preferably through using a hook or a filter. Most clients don't bother giving images a proper title, thus eliminating the purpose of ...
1
vote
3answers
175 views

Thumbnail with different sizes

I want make all my blog thumbs the size of 227x133. I need images width have 100% (for responsive design). Some images have width greater than the other and vice versa. I'm using this code to show ...
1
vote
1answer
1k views

Insert an image into a post by API

By using the code below, I can create a new post and upload an image to wordpress's upload directory as a attachment through a form's submitted data. $new_post = array( 'post_title' => ...
1
vote
1answer
378 views

How to Display Image Meta underneath EVERY image in EVERY post

First off, I want to say thank you for taking the time to even read this, I really do appreciate the help this site and it's community has given me thus far. i have looked forever to be able to ...
1
vote
2answers
5k views

Get Featured Image via direct sql query

I know you can use the wordpress methods for getting a featured image, however with this particular project I need to get the featured image via mysql query. Can anyone point me in the right ...
1
vote
3answers
2k 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 ...
1
vote
1answer
300 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
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
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
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 ...
1
vote
1answer
131 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
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 ...
1
vote
1answer
586 views

Adding featured image via PHP

Currently I'm working on a project where site is driven by user articles, how it works: Any user goes to compose post page and writes post along with few details, has upload file option for image ...
1
vote
1answer
824 views

How to add multiple featured images to post/page without a plugin

For example, in portfolio section I want to have 3 images that are positioned always in the same place in all the posts. I know there is a plugin that does this but I need to accomplish this without a ...
1
vote
2answers
569 views

How do you get thumbnails to show up in the admin edit post?

I tried to add thumbnail support to my theme add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size(133, 133, true); add_theme_support( 'post-thumbnails', array( 'post' ) ); ...
1
vote
1answer
371 views

How can I show the post thumbnail from the most recent of a certain post type, in widget?

I'm using the excellent PHP Code Widget plugin, and want to create a widget that displays the post thumbnail (aka featured image) for the most recent 'project' post. Here's the code I have so far, but ...
1
vote
1answer
777 views

Showing Thumbnail from Previous and Next Posts

Is there a simple way to use the post thumbnail when calling previous_post_link() and next_post_link()?
1
vote
1answer
2k views

Can I refresh the thumbnails programmatically?

I would like to be able to refresh the thumbnail cache programmatically, not sure where to hook it, but at present any design changes mean re-uploading loads of images!
1
vote
2answers
311 views

Wordpress query_posts adding two “post-entry” divs, one with “post-thumbnail” and one without

Hi my name is Antony and this is my first question. I'm currently making a worpress theme. And in the loop I want to have two "post-entry" divs one that's small that goes next to my post thumb, and ...
1
vote
1answer
141 views

Change post thumbnail using front end post edit form

I'm trying to get the post thumbnail to change if a user selects a new file on a front end post edit screen. This is similar to the code I use to upload data and set the post thumbnail on a front end ...
1
vote
1answer
66 views

set_post_thumbnail_size not cropping featured images, but reducing proportionally

In my function file, I set the following: if ( function_exists( 'add_theme_support' ) ) { add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 150, 50, true ); } And in the ...
1
vote
2answers
74 views

how to use the new image size

I am new to wordpress and i want to use a size which can be 300 x 283, i tried the the_post_thumbnail(array('300,283')) but it didn't work, then i went to read about add_image_size which i added like ...
1
vote
3answers
307 views

Download an image from a webpage to the default uploads folder

I am writing a custom theme/site in which I need to download images programatically from certain webpages to the upload folder and then insert them as part of the post. So, I was able to find the ...
1
vote
1answer
347 views

How to get custom image sizes into media uploader dropdown?

I searched net to solve the problem with images size uploaded from media. But not even one worked to me. When I try to insert images from the media into post it does not show my custom image size 608 ...
1
vote
2answers
94 views

Allow author to choose his featured image size

Request from a client. He wants his authors to be able to upload their image and then set it as featured, just like normal. The difference is that when setting it as featured, he wants the author to ...
1
vote
1answer
298 views

How can a shortcode can take the place of the featured image in a post?

When there is a specific shortcode in a post (example [sc]anything[/sc]), I want to hide the featured and take it's place. How can I do that? I add this on my theme function // TopWide Shortcode ...
1
vote
1answer
2k views

No Thumbnails Generated

I setup WordPress on my own server and it's up and running...one thing that I have noticed is that WordPress doesn't generate any images I upload. Usually when I upload an image through WordPress it ...
1
vote
2answers
457 views

Adding schema itemprop image to the_post_thumbnail with filters

I have tried to apply filters to the_post_thumbnail() function using apply_filters( 'post_thumbnail_html', $html, $post_id, $post_thumbnail_id, $size, $attr ); Here's the code I have come up with ...
1
vote
1answer
149 views

Echo URL of large version of Featured Image

I use this plugin to echo the URL of a post's featured image in the header: <?php /** Plugin Name: Post Thumbnail FB header */ function fb_header() { // Not on a single page or post? Stop ...
1
vote
1answer
54 views

Look Through Family Tree and Find Featured Image

I just built a theme that looks for a featured image on the current page, if it can't find a featured image it will continue to look backwards through the family tree until it can find one. Then it ...
1
vote
2answers
300 views

Setting a default placeholder image WITHOUT link

Can anyone help? I'm trying to show a default placeholder image on my posts when the user hasn't uploaded an image. I have the below code BUT i need to rewrite it so that the link isn't applied to ...
1
vote
2answers
2k views

Show featured image next to post-teasers in Genesis Framework?

I want my posts to have a featured-image thumbnail beside it, how do I do this?
1
vote
1answer
610 views

Image still attached to post even after removing it as featured image

I'm sorry if this is too noob of a question, but when I upload an image and set it as the featured image then later remove it (as featured image), the media list still shows it's "Attached to" the ...
1
vote
1answer
769 views

why when I try to insert an image attachment along with a post does wp_get_attachment_url give me a very wrong file path?

I am using a new blog on WPMS (3.0.1, updating is not an option) to aggregate posts (and their featured image) from a few blogs on the same install, and I have to do it programmatically rather than ...
1
vote
1answer
995 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 ...
1
vote
1answer
2k 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' => ...
1
vote
2answers
272 views

thumbnails are getting clipped down, want to resize instead

I am working on a pre-built theme, and it is clipping the thumbs off. It looks like it is happening in functions.php. I already checked the media and it is not checked. I want to achieve a resizing ...
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 ...
1
vote
1answer
307 views

Multiple Post thumbnails (at least three)

How do I attain multiple post thumbnails, and have more that three thumbnails for each post.
1
vote
3answers
1k views

Any Short code Availble for Get Post List With Thumbnail Plugin?

Any Short code Availble for Get Post List With Thumbnail Plugin? or else how to Create Short code for this Particular plugin? Thank u in Advance.
1
vote
3answers
2k views

Featured Image VS Post_thumbnail — has_post_thumbnail lies?

OK, I got a custom post type with thumbnail enabled which adds the "featured images" panel to that post-type just fine, but in my template when I do if ( has_post_thumbnail() ) { ...
1
vote
2answers
387 views

How can I migrate all of my custom field thumbnails to the built-in post featured image?

I am running a theme on my Wordpress install that was built for Wordpress 2.8, prior to the time that Wordpress started using featured images for posts. I am switching to a theme that was built for ...
1
vote
2answers
3k views

wordpress custom walker for thumbnails with custom menu

I'm still very novice at PHP so any help is greatly appreciated. Typically I have found the codex to be very helpful but it appears custom walkers may be outside its scope. I'd like to have ...
1
vote
1answer
67 views

Special purpose photos with each post

How would I grab a photo, that has been added to a post, and use it elsewhere on a site when there have been several photos added to the post? For example, my site has a blog (Wordpress) and a ...
1
vote
2answers
450 views

How to pull image from first post and display it on monthly Archive page?

I am using a custom template for my monthly Archive page. This page will show all the posts-links (category-wise) for the particular month. In the very first post of each month, there shall be only ...
1
vote
1answer
21 views

Get ID of featured image using “get_post_thumbnail_id(the_ID())” - without printing to screen?

I'm using the code: get_post_thumbnail_id(the_ID()) to get the ID of a post thumbnail image, but whenever I call this it outputs the ID to screen. I just want to get the value to use in another ...
1
vote
1answer
30 views

wp_get_attachment_image_src() and custom sizes

As said in this page, wp_get_attachment_image_src()only accepts built-in sizes such as thumbnail, medium, large or full. How do you get the same return value with custom sizes you add with ...
1
vote
1answer
30 views

Can't seem to attach uploaded image to post and set it as thumbnail

I'm using this code to submit a post form and upload an image which I want as the post thumbnail. Everything submits perfectly and the image even uploads but I can't seem to figure out how to attach ...
1
vote
2answers
44 views

How to offset thumbnails to the center?

I made few thumbs size. But some of them make total resize of original pict or make new with specified sizes from right bottom corner. Is this posible to centrilize thumbs? I meen to make new thumb ...