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)

2
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
860 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
129 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
960 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
469 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
676 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
798 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
227 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
865 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
796 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
486 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
160 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
762 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
685 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
2k 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
988 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
678 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
790 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
701 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
449 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
463 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
235 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
9k 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
515 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. ...
0
votes
2answers
4k views

Query to delete all featured images and remove post meta?

I'd like to run an SQL query to find all featured images from posts and delete the file itself and any references to it. Can anyone tell me how to accomplish this? Many thanks!
1
vote
2answers
979 views

get_post_thumbnail_id() Doesn't return value [closed]

I'm changing a menu from a loop with query_posts to a "custom menu" using wp_get_nav_menu_items, but I can't seem to retrieve the post_thumbnail. The original code I had (snippet): <?php ...
0
votes
1answer
923 views

How to use the thumbnail size with catch_that_image

Im using catch_that_image() to grab the first image of posts and use that as a thumb in a loop but the thumb is only 40px/40px and the image has to be scaled dramatically so I'd like to figure out how ...
0
votes
1answer
59 views

How to allow the user to add an arbitrary amount of post thumbnails

I already installed Multiple Post Thumbnails. However I would like to allow the user to decide how many images he associates with the post (or rather page in my special case). I could of course just ...
1
vote
1answer
181 views

Single post layout based on featured image size

I have two minimum image sizes to play with. One is 420x640px ("standing") and the other one is 980x420px ("landscape"). The normal loop with a regular layout is in place in my theme. The goal is to ...
0
votes
1answer
85 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
298 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
714 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
391 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 ...