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
358 views

Extract featured image from link mentioned in blog post

You ever notice Google News has relevant images associated with its headlines? How can I use WordPress to extract a featured image from an external webpage referenced in a blog post (or custom ...
0
votes
3answers
894 views

Using thumbnail functions inside a shortcode

I'm trying to figure out why WP doesn't seem to recognize functions like get_the_post_thumbnail() inside a shortcode loop. For example, tried adding it to a fresh theme / plugin-less installation. ...
0
votes
1answer
402 views

Automatic adding thumbnail to post

I have got following code. $postData = array( 'post_category' => array(get_category_id("website")), 'post_content' => 'My website about cars.', 'post_title' => 'my little cars', ...
6
votes
2answers
901 views

Set custom name for generated thumbnails

Is there any filter available to set the naming convention of those auto generated thumbnails? Something like this: thumbnail_150x150.jpg -> thumbnail-s.jpg thumbnail_300x300.jpg -> ...
1
vote
2answers
8k views

How come Featured Image isn't showing up in my Custom Post Type?

I have thumbnail support added with the following in my functions.php // Add Thumbnail Support add_theme_support('post-thumbnails'); set_post_thumbnail_size( 140, 140, true ); And I create the ...
1
vote
2answers
666 views

Filter For Featured Image

Is there a filter for when a Featured Image is set/unset or changed. I need to delete transient data when the above occurs.
5
votes
1answer
904 views

How to add multiple image sizes of the same size with add_image_size

I'm using a grayscale filter on all uploaded images in my WordPress installation. However I want both the gray scaled image and the colored image in my website (colored on hover). The way I tried to ...
0
votes
2answers
2k views

Show different size featured images (the_post_thumbnail) for 1st, 2nd and 3rd posts?

I file all the galleries on my blog under the 'gallery' tag. I use the following code (via) to display the latest 7 gallery posts after the 8th latest post on home page: <!-- Featured post ...
2
votes
1answer
192 views

Why are extra 92 pixel square thumbnails created?

Disabling this WordPress feature which automatically generates various sizes of an uploaded image, is normally as simple as going to WordPress Dashboard > Settings > Media screen and changing all ...
3
votes
2answers
441 views

Add Image Dimensions to Media Library Tab on Media Upoader

I would like to add the dimensions of each image to the media library tab in the media uploader. I have a multi-author website, where I require users to add a featured image with minimum dimensions. ...
3
votes
3answers
2k views

can the_excerpt function also get images?

Not sure if im going about this in the right way but, overall, ive been told to create, kind of like a news box on my home page and so, the "latest news" is going to be this clients posts. now i know ...
-1
votes
2answers
2k views

Scan for first image in post and display it [duplicate]

Possible Duplicate: Retrieve 1st image in post and set it as featured image, when post is saved/updated VT-resize image and display it ok guys, I have this script which I modified in ...
0
votes
1answer
890 views

VT-resize image and display it [duplicate]

Possible Duplicate: Retrieve 1st image in post and set it as featured image, when post is saved/updated I am trying to make this works and instead of giving me the url of the image, it is ...
0
votes
1answer
132 views

How to implement two separate featured images for each post/page

So I would like to set two separate feature images for each post/page. One would be a rectangle for use in a slider and another would be a square for use on archive pages, search pages, category ...
0
votes
1answer
123 views

Need help with simple “if statement” checks to output particlular CPT data depending on what client uploads/fills out

In short, Im not a master of PHP yet and Im not entirely sure how to place a series of checks (if statements) in my template so that it will know what to display depending on what the client ...
4
votes
2answers
986 views

Cropped featured image replaces original image in gallery

Firstly, I have done my research as thoroughly as I possibly can. Searches have been made, but I have not found any advice or solution as to my exact issue. Ok, time to explain. Currently I am ...
1
vote
1answer
474 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
678 views

Function to scan for image, attach it to post, set it as featured [duplicate]

Possible Duplicate: Retrieve 1st image in post and set it as featured image, when post is saved/updated I need a function that when a post is saved/updated, it will scan the post for the ...
0
votes
1answer
830 views

How to hide image-url if no attachment?

How can I hide the img-tag if there is no attacment? (function is from this tutorial: http://wp.tutsplus.com/tutorials/automagic-post-thumbnails-image-management/) <img src="<?php ...
1
vote
2answers
9k 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 ...
2
votes
2answers
230 views

User facing form to upload image on wordpress

I have a client who bought a wordpress theme that is built for posting job listings, a user can create an account and then post job listings but my client wants it converted to post Wheel listings ...
1
vote
2answers
882 views

Set Post Thumbnails in Percents

I've built this responsive site on WordPress and got a little curious as to how I can set the post thumbnails in percentages. Any help would be much appreciated.
0
votes
2answers
807 views

Wordpress featured image url rendering incorrectly when page is loaded causing image to break

I migrated a site from my testing server to the live server. Everything transferred normally only the featured images are broken and not displaying. The URL's are being rendered incorrectly even if i ...
0
votes
1answer
2k views

Why does Facebook not want to display my post thumbnails?

Recently when I try to share my content on Facebook, everything appears normal except I cannot get it to display a picture. I'm using WordPress SEO to handle all of the SEO and Social metadata, but it ...
1
vote
1answer
497 views

How to make a Thumbnails Mosaic

I would like to make a mosaic with all the post thumbnails of a category and use it as the heading image on the category page. How do I go about achieving this? Where do I start? Any suggestion about ...
2
votes
2answers
2k views

How to change post thumbnail title and alt attributes to post title?

Can we change the title and alt attributes of the_post_thumbnails and set them to post title instead ? like creating a function for it and adding a filter ? I tried searching but I can't seem to find ...
0
votes
2answers
162 views

Create an instance of add_image_size

I'm looking for a method to create an instance of add_image_size(); To elaborate: I am using the file uploader in a plugin to insert a file reference by ID. That ID is then used to create touch icons ...
10
votes
6answers
3k views

Minimum Dimensions Requirement for Featured Image?

I am creating a baseball website with multiple Authors. From past experience, no matter how well you know someone personally, it doesn't mean they will follow or even read your instructions. That ...
0
votes
3answers
772 views

struggling with syntax for the_post_thumbnail();

i want to display the alt text for a featured image. I've been using the the_post_thumbnail(); function to display the image like this: if ( has_post_thumbnail() ) { // check if the post has a Post ...
1
vote
1answer
1k 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 ...
0
votes
3answers
691 views

Wordpress 3.3.1 not cropping featured image

When I add a featured image to any post the image is not cropped but it is always displayed full size. The media settings are ok... even when I call <?php the_post_thumbnail(); ?> in my theme, ...
0
votes
2answers
243 views

How to check all items in a loop have post thumbnail?

Currently I have the following loop: <?php $shows_sales = get_posts(array( 'post_type' => 'show_sale', 'post_status' => 'publish', 'posts_per_page' => 3, )); $done_image = ...
0
votes
1answer
1k views

Wordpress Uploader Editor shows broken image

I have the latest wordpress version installed. When I upload an image in the control panel for a post, I then go to edit it (crop an image for the thumbnail the way I want or rotate or do any kind of ...
0
votes
2answers
3k views

get_the_post_thumbnail('thumbnail-name') always returns empty string

I need to duplicate a list of thumbnails elsewhere on a page and have set up a few different custom thumbnail sizes in my functions.php file. If I use: the_post_thumbnail('photo-small'); Then the ...
3
votes
2answers
4k views

Retrieve 1st image in post and set it as featured image, when post is saved/updated

I need to set a featured image for every post I publish. So, when a post is published/updated, the script would scan the post for the first image using a script like this: // Get URL of first ...
2
votes
1answer
996 views

Image uploader with “Set Featured Image” link on front end

I am loading upload-media.php file using thickbox on front end where user can upload images to the post. Question: How to I trigger the upload-media.php so the link "set featured image" shows up on ...
0
votes
1answer
694 views

Featured Image Thumbnail Sizing

The image on the left is what it is currently looking like. I used developer tools to change the width & height of all the image fields for the image on the right, however I would like some sort ...
0
votes
1answer
802 views

Resizing thumbnails retrospectively

I have a Custom Post Type called species - fishkeeping species profiles. Each species profile can have as many media attachments as it needs, plus a separate featured image. I've dealt with this by ...
0
votes
2answers
708 views

Specific Post Format Image Thumbnail

I have a post thumbnail set for standard posts (when an image is featured) but for image format posts I'd like to have a separate, dynamically resizing (i.e. image resizing in the functions php via ...
1
vote
1answer
456 views

Muliple featured images (or just images) per post

Is there a way to have multiple "featured" images (or just images) per post...I mean without putting it into the regular text editor. I would like to have some control where the images go...hence ...
0
votes
1answer
469 views

How to use images uploaded with custom implementation of thickbox like the_post_thumbnail() functionality

I have create a custom post type with meta boxes. In metaboxes I have create some fealds that the use can use the WordPress ThickBox Media Dialog to upload his/her images for each post seperatly. ...
0
votes
2answers
237 views

Using catch_the_image to get the thumbnail size

I use front end posting on my site so I don't get a chance to set a featured image for alot of my posts. So I use catch_the_image to get thumbs but it gets the original size and then scales it which ...
1
vote
2answers
2k views

how to change my child theme featured image dimensions?

I am developing a child theme based on the twentyten theme and now i notice the featured image in the WP backend (wp-admin) shows the wrong scaled image. It shows the "twenty ten" size, meaning an ...
2
votes
3answers
3k views

Showing a placeholder/default img, if no featured image is set

I need to modify the following code to show a placeholder if there is no featured image available. I understand that I need to add a if statement in the following code but wasn't sure of the exact ...
1
vote
2answers
1k views

Show Multiple Size URL of one Featured Image/Thumbnail?

Is it possible to print two different url's from the same featured image/thumbnail? So i have set up my image size.. add_image_size( 'full-size', 460, 9999 ); add_image_size('fixed-height', NULL, ...
1
vote
2answers
1k views

How do i show wordpress attachments from current post?

So with my blog i have a photo attachment page but it only shows to photo's at a time, and those two photo's are used as the navigation and i hate that. I want the attachment page to show all the ...
1
vote
1answer
10k views

Displaying a featured image (only img url) as the img src?

I have the following code: if (themedy_get_option('product_gallery')) { add_action('genesis_post_content', 'themedy_product_images', 1); } function themedy_product_images() { ?> <?php ...
0
votes
1answer
3k views

How do I display the featured image from an image gallery using a reference in code? (example within)

I've been trying to get the featured image of a post to be displayed outside of the loop for all the image thumbnails. That way, the featured image (of a product) is displayed in large and the ...
1
vote
2answers
522 views

Store Snapshot created via wordpress to use with lightbox

i know this is a bit of a weird question but its a real time saver so if you got any ideas (even partial) i would really apreacate them :) Ok... so i am using wordpress built in interface to capture ...
0
votes
3answers
2k views

Image Alignment on Featured Images

When a client edits a featured image, they notice that they have the ability to set its "Alignment". If they were working with standard images embedded via the Editor, then this wouldn't be a problem. ...