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)

3
votes
1answer
738 views

Allow user to manually set crop area of default/custom image sizes on upload

I'm looking for a plugin that allows the user to define where the image will be cropped for a given thumbnail size. For example, the user uploads an image, a screen comes up with the image and a ...
2
votes
1answer
55 views

How to compress thumbnail images of two different sizes?

I'm new to wordpress and so far with a limited knowledge of PHP, I was able to build up a theme from scratch. I removed the compression for my homepage images for a better quality of pics. Now, the ...
2
votes
1answer
128 views

How to remove thumbnail sizes for specific post type on a child theme?

The theme I'm using includes a slideshow that generates an additional 4 image sizes for every image that is uploaded. I don't need to have all those images being generated for every image. Is there ...
2
votes
1answer
117 views

Hide upload image fields for the different media upload popups

I am trying to change a few of the options in the Set Featured Image popup in the Wordpress admin. I can't seem to find anything that determines if the popup window is a Featured Image or an Add Media ...
2
votes
1answer
113 views

How to change the naming of the resized image files

Now with custom image sizes Wordpress is almost as powerful as timThumb / phpThumb. There is one problem however. The way Wordpress handles the resized images are chaotic and doesn't survive theme ...
2
votes
1answer
124 views

Featured Image Size Conditional Tag?

Is it possible to check what image size has been selected for the featured image and only display that image.. For example. <?php if(has_post_thumbnail('small-image')): ?> ...
2
votes
1answer
105 views

Converting Attachment to Images?

I've had no problem using lightboxes before with attachment images, but I've switched to a new theme called Quicknote and it seems that attachment images now instead link to the attachment page. ...
1
vote
1answer
90 views

How I upload, save and set a featured image from my frontend?

I have a form in my site. This the user register one missing person. I created a custom post type missing person, custom taxonomies and custom fields. All this input's save as well in wp. But I ...
1
vote
1answer
165 views

How to set the jpg image compression for specific thumbnail sizes?

This question was asked on Set JPEG compression for specific custom image sizes and answered very nicely by Ahmad M I'd of course comment to that thread but I don't have 50 point reputation... The ...
1
vote
1answer
333 views

Function to auto-set a featured image that is already in use

I don't even know where to start with figuring this out.... This function for functions.php grabs the first attached image in a post and sets it as the featured image. The problem is that it will not ...
1
vote
1answer
136 views

Secondary Featured Image Function (post_thumbnail)

Does anyone know if it is possible to add a secondary Featured image function to the pages and post editor?
1
vote
1answer
46 views

Get all images in post and comments like Twitter before post title

I want to know if it's possible to get all the images that are in a post and his comments, make them a thumbnail and put it before (or in a sidebar or something) the post title to show, just like ...
1
vote
1answer
737 views

How to get Poster (thumbnail) Image of Video

I'm getting all videos using the function below and it's working fine. Now I want to get the videos Poster Image (Thumbnail Image) from that video. How can I get the video Image as thumbnail? I've ...
1
vote
1answer
416 views

Cannot get post thumbnails to display

I'm stumped. I've pored over all the articles here and beyond to no avail. I'm trying to simply display the post thumbnail in a template page, but it will not show up. I have thumbnails enabled for ...
1
vote
1answer
102 views

Show last 2 image attachments from posts

How can i show the last 2 post attachments in my category template? I tried the following But i need to show the last 2 post image attachments if i have the following code function ...
1
vote
1answer
741 views

Archive show thumbnail

I want to show thumbnails next to my posts in archive page, however it only shows thumbnails if the posts has a featured image. So I want to show thumbnail for the image attached to the post, but I ...
1
vote
1answer
103 views

How do you create a custom template to display a category with an image and related posts below?

I am trying to create a custom template that can give the following effect... Category Name A (with image) post with category name A post 2 with category name A post 3 with category name A ...
0
votes
1answer
35 views

Delete post media except featured image

I'm working on site where post except 'featured image' has also other images. Under certain circumstances I need to delete all images except 'featured image'. Which one the most convenient way to do ...
0
votes
1answer
65 views

Featured Image URL is Showing but not thumbnail

I added posts from other CMS to my new word press site. For featured images I changed, wp_post table as post ID: 2300 Attachment in "wp_post": ID:3400 post_type: attachment post_mime_type: ...
0
votes
1answer
102 views

How to get cropped thumbnail source for custom post type

I need thumbnail image url with size 148*148px. I using custom post type for testimonials. I need just the image source like http://example.com/demoimage.jpg. It is possible to get cropped image ...
0
votes
1answer
77 views

Featured Image not showing on wordpress hosted under Amazon AWS

I created a wordpress website on Amazon AWS. I also installed the same theme on wordpress hosted under Bluehost. The problem with wordpress hosted under amazon is that it doesn't show the featured ...
0
votes
1answer
75 views

how to both crop (with tool) and resize thumbnails having only a max width constrain?

I can't found my very problem in other threads. I'll try to explain: want to use thumbnails MAX 400px width. That means that CAN be 400px, but not always they should be 400px width. They can be even ...
0
votes
1answer
44 views

Overwriting a Shortcode

I have a theme that extends the Visual Composer plugin with a slider on the front page. The slider will show five testimonials from five different customers. I want to add the featured image of each ...
0
votes
1answer
117 views

Combining Post Thumbnails With Nivo Slider

I am wanting to use the post thumbnail with the nivo slider and for it to generate the image from a custom image size (already declared in my functions file) I wrote this (for generating the images) ...
0
votes
1answer
43 views

featured post as div background

Ok I didn't find an answer yet.. because my code is different.. I want to set the featured image as the div's background but I don't know how to do that.. html, php and css collide in one line.. This ...
0
votes
1answer
144 views

Wordpress get_categories & listing recent post thumbnail

I'm trying to get a page to list all the child categories and then display their name and a thumbnail from the most recent post in that category. This is the following code I've got, it appears to be ...
0
votes
0answers
138 views

Updated WordPress and now image crop, thumbnail setting and thumbnails are gone

I've updated to WordPress 3.7.1 and when I upload images to my site, it's not generating thumbnails. It's also missing the image crop and thumbnail setting sidebar. I created a simple theme but ...
0
votes
0answers
36 views

Adding an existing featured image to a post through mysql

I want to add an already uploaded featured image to a post by adding records to the wp_postmeta table through MySql. Is that possible, has anyone done this? I'm using WP 3.7.1. Thanks in advance. ...
0
votes
0answers
73 views

Pointing Existing featured images to s3 bucket

Our wordpress site is moved to another server and we moved all the images to amazon s3. Updated the post_content and guid to s3 path. On verifying found that the images which are set as featured ...
0
votes
0answers
92 views

wordpress imported images not working for featured image

To import images into my wordpress site, I added the actual image into the correct month's folder in the uploads directory and I created a post as type attachment with that image name and url. When I ...
0
votes
0answers
127 views

Featured image and Media Grid

I am trying to get an image in Media Grid's lightbox to another page. I have the images set up in the media grid plugin and when you click on the image it opens a lightbox with a larger version of the ...
0
votes
0answers
10 views

How to create custom anchore to specific past category with feature image?

I created wordpress website and add 6 statics banner. Now i want to dynamic so i created a add category and add featured image as a banner but dont know how add anchore please give me idea or aany ...
0
votes
0answers
61 views

Search for featured image, then for first image, then for video thumbnail

I want wordpress to use featured image to create thumbnail. If there is not, then first image of the post. If not, video thumbnail. Can anyone help me modifying the code? Thanks in advance. USED ...
0
votes
0answers
281 views

get_the_post_thumbnail() returning empty string on custom post type

I've been brought in to help out with development on an existing plugin, and have run into a strange issue. Not sure if I'm overlooking something obvious here. The situation: I'm adding a shortcode ...
0
votes
0answers
126 views

Use the_post_thumbnail as background image in LESS CSS

I'm trying to use the_post_thumbnail featured image as the background image to a div container within a page template file. I'm using LESS CSS and wondered if it was possible to pass in a Wordpress ...
0
votes
0answers
183 views

SVG images as featured image/post thumbnail

I'm able to upload SVGs thanks to this solution: How can I upload SVG images using the media uploader? But when I try to set the SVG as featured image the field stays empty. Is there something I have ...
0
votes
0answers
48 views

How to set a Maximum Image size to a Field in WordPress

I have a customized frontend form in WordPress that allows to set a featured image to a post before publishing it. I want to set a maximum-allowed "width" as well as a "height" to the "upload image" ...
0
votes
0answers
94 views

featured image not showing up with mysql_connect

i noticed a certain problem with the featured image issue, i had everything work nicely until i added a mysql connection to another database to retrieve certain information, the featured image stop ...
0
votes
0answers
158 views

How to get featured image thumbnail to open larger version in attachment page?

I have a thumbnail of the featured image, which is linked to a larger version of the file. At the moment the file just opens in a standard browser window, but I would like it to open in an attachment ...
0
votes
0answers
48 views

Load complete image, but don't bother the site speed

I designed and developed a site for my client. For images, I used the default WordPress sizes: original, large, medium and thumbnail (although I made some minute changes in their dimensions). As I ...
0
votes
0answers
76 views

How to scroll through post thumbnails?

I have two custom post types that each have a post thumbnail. On my homepage, I have a section that I want to display the post thumbnail of each of the custom post types ...
0
votes
0answers
90 views

Why is Wordpress loading a different sized post thumbnail?

I have a custom theme where I'm using post thumbnails as BG images for a slider. The thumbnails and some other info are entered using a custom post type. However, even though I'm uploading 1440x833 ...
0
votes
0answers
191 views

Full size image option removing problem

I have removed the Full size image option from the media upload window see Code: function theme_t_wp_set_image_size_options( $sizes ){ $sizes = array( 'thumbnail' => 'Thumbnail', ...
0
votes
0answers
162 views

Featured Image metabox (postimagediv) doesn't appears when it should

I'm using a plugin called Co-Authors Plus for managing guest authors in my website. However, when creating a new guest author, the Featured Image metabox (postimagediv) doesn't appears. I'm almost ...
0
votes
0answers
113 views

Customized featured image doesn't refresh in post admin metabox after upload/insert

I customized my featured image metabox position, the default name, and text for a custom post type. While I'm able to add/edit an image in post admin, after I have uploaded an image, the post admin ...
0
votes
0answers
41 views

wp_get_attachment_image_src match smallest edge

I'm trying to get the minimum image source that fills the given size. wp_get_attachment_image_src(get_post_thumbnail_id(), array(180, 180)) gets the image which fits the size and not which fills it. ...
0
votes
0answers
232 views

Is there a way to force Featured image to show as attachement?

When adding an image as a featured image to a post - if the image is an existing image in the Media Library, then the image is not added as a true attachment but as a thumbnail, shown like this in ...
0
votes
0answers
189 views

the_post_thumbnail(“size”) returns same image for all sizes except thumbnail

I've got 3 default image sizes set up in "Setting > Media Settings > Image Sizes" However, when I use anything but "thumbnail" as the image size parameter in the_post_thumbnail(), it returns the full ...
0
votes
0answers
36 views

Post thumbnail size for custom field only

I'm using advanced custom fields (the plugin), and I have some image upload fields. The images that I'm uploading via this custom field need to have a specific size, but I don't want to create images ...
0
votes
0answers
241 views

add_theme_support( 'post-thumbnails', array( 'post')); is not uploading the file

So I used the codes below in the functions.php add_theme_support( 'post-thumbnails', array( 'post')); set_post_thumbnail_size(100, 75); And then in THE LOOP I called: <?php ...