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
152 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
1k views

How to get featured post title & image using JSON API?

Is there any possibility to get featured post title and image using the JSON API. I tried using this: example.com/?json=the_post_thumbnails&count=3 But instead of recent posts, I get featured ...
2
votes
1answer
144 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
139 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
180 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
137 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
64 views

Custom image size in the_content loop

I changed the default image dimensions for the "large" thumbnail and re-generated my images using a plugin. The new image size is only shown on new posts created after the image size was created. How ...
1
vote
1answer
2k 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
140 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 ...
1
vote
1answer
538 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
48 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
1k 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
302 views

Can I insert the feature image inside the content, after any paragraph?

I want to display the feature image inside a post text, perhaps after the third or fourth paragraph (or any) into the_content. Searching the site I've found this code, by Amit: ...
1
vote
1answer
578 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
108 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
947 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
107 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
20 views

Featured images not showing up

I´m having a strange issue with featured images. Here´s what I did: Added theme support for featured images with add_theme_support( 'post-thumbnails' ); Attached a featured image to each post ...
0
votes
1answer
14 views

Get post thumbnail to display favorites

I use this line: echo (the_user_favorites_list($user_id = um_profile_id(), $site_id = null, $include_links = true, $filters = null, $post_thumbnail_id = get_post_thumbnail_id())); to display a ...
0
votes
1answer
22 views

Set Featured Image Based on Custom Field

I have tens of thousands of images. I also have tens of thousands of articles. These were both imported from a custom CMS. The image filenames are the IDs they had in the old CMS e.g. 12345.jpg The ...
0
votes
1answer
21 views

Set two default featured images

I use the featured image in a few places in a theme I'm creating and I'm wondering the best way to set a default featured image. I need a thumbnail variant and then a 'full size' version, both using ...
0
votes
1answer
19 views

How to get the URL of a each custom image size of a featured image

I would like to get the URL's of my custom image sizes for a featured image - so I can inject them conditionally. (this in functions.php) To start off, I'm removing the default crop sizes because I ...
0
votes
1answer
29 views

how to use first post image as thumbnail on wordpress

how can i set my thumbnail to use the first image on my post? most time i use bbcode( [img] ) to place images on my post, i want them to be use as well, have tried so many suggestion, but none meet ...
0
votes
1answer
19 views

The location of the html output from the_post_thumbnail();

So I added the_post_thumbnail(); so I can add images through the featured image area in the wordpress. I am trying to add schema to the output since it isn't working by just wrapping ...
0
votes
1answer
65 views

Animated Gif as Featured Image

I am wanting to upload animated gifs to my website and use them as the featured image. I have a couple of questions. Firstly...how do I stop wordpress from automatically resizing the image when I ...
0
votes
1answer
16 views

changing size image within the content

I'm trying to get my images inside the post may larger than 800px ; For this I took a function that resizes image here and I'm trying to create a function to my thumb inside the post come with size ...
0
votes
1answer
65 views

Run javascript upon successfully set featured image

I'm looking into running Color Thief against the featured image whenever it is set or updated. I can't seem to find any way on how to hook into this event. Currently I'm doing what I feel is a bit ...
0
votes
1answer
20 views

Why wordpress doesn't generate thumbnails?

Wordpress doesn't generate thumbnails in my server. I don't know why. Old images' thumbnails get regenerated; however, the newly uploaded ones doesn't. I used Regenerate Thumbnails plugin to ...
0
votes
1answer
27 views

Generate smaller post thumbnail for archives

I have a blog style page where every post has a post thumbnail. Since I have 5-10 posts on my front page it pulls down my page ranking, because the post thumbnails are vastly bigger on the post page ...
0
votes
1answer
19 views

Using lower resolution/size images for thumbnails on posts index

In each of my post I set a feature image with a width of 800px. This is fine, however if I browse to the blog index page, which shows all posts (the feature image + an excerpt), then I end up with a ...
0
votes
1answer
41 views

Get custom size of thumbnails

This how I am currently retrieving slides: <?php $args = array( 'ignore_sticky_posts' => 1, 'posts_per_page' => 20, 'post_type' => 'slide' ); $slides = ...
0
votes
1answer
20 views

Featured Image Module Randomly Disappears

I've been running into an odd problem on our WP blog that has me befuddled. I custom built the theme we use and I enabled Featured Images by adding the following line to the beginning of the ...
0
votes
1answer
40 views

Wordpress returns old thumbnail size after changing media settings

I have had a requirement to update a WP build so that the thumbnail size changes from (the default) 150x150 to 500x500. I've amended the size within the Settings > Media and utilised the awesome ...
0
votes
1answer
196 views

Customize Facebook's sharer.php to pass metadata of wordpress post (thumbnail and title)

I created FB Share button for wordpress post but it does not fetch the metadata from the post. I would like get the thumbnail and the title of the post when clicking share button. Here is the code I ...
0
votes
1answer
71 views

How to add posts with thumbnails to my dropdown menu?

I want to create the same effect in Listverse menu. I have a dropdown menu, and I want to add a post section with thumbnail, as shown in the image below. How to achieve that? Thanks!
0
votes
1answer
290 views

How to set YouTube video as featured image?

I am trying to have all my posts with post_format set as video, have said video as the featured image. Here is what I am working with thus far but I need some help: if($post_format == 'video') { ...
0
votes
1answer
58 views

How to output thumbnail twice in a loop

ok I have a portfolio page. & I have two question: number 1: Every portfolio item has thumbnail attached. what I want is to print out the first thumbnail from the first post twice. One at the ...
0
votes
1answer
332 views

Page featured image not showing on home page

I'm creating my own theme, my little practice. I added the_post_thumbnail in index.php page. All latest post's featured images are showing on home page except Page featured image. While I added ...
0
votes
1answer
146 views

Featured Image of the post are gone after site move to another server

I have moved my wordpress site from Amazon AWS to bluehost with same domain. Setup and Map domain to bluehost. Install wordpress Copy plugin, uploads, and themes folder to new server Dump db and ...
0
votes
1answer
67 views

Apply height and width for the_content() inside youtube video tag

I am displaying video and content form this function the_content() for this am using you-tube [embed] link. How can i give height and width ??? Also, I am using the_post_thumbnail() for image it to ...
0
votes
1answer
125 views

Post thumbnail won't resize to fit

Below is the code i used to set my thumbnail sizes. The Only problem I'm having is that my thumbnails won't resize to fit the size below or the <div> add_theme_support( 'post-thumbnails' ); ...
0
votes
1answer
34 views

How do I get thumbnails?

Today I set up my Wordpress blog I used the hueman theme I looked at my posts page And there were blank images with cameras in the middle of them So I guess there thumbnails How do I get them?
0
votes
1answer
79 views

Upload image from a URL and assign it as a Featured Image to a Custom Post Type?

I am 90% done building a plugin that uses the Amazon.com API. What I have built is a Books Custom Post Type. My Books CPT has Custom Taxonomies for Book Category, Book Tags, Book Author, and Book ...
0
votes
1answer
145 views

Copy wp_postmeta from one database to another

I had a site setup on old-domain.com, which used the database old_db. Recently, we had to migrate our website to a new server and domain, new-domain.com which uses the database new_db. I installed a ...
0
votes
1answer
534 views

How to Make Thumbnail of Post Stay Animated

When I upload my post with an animated .gif, the thumbnail generates into a new image and doesn't stay animated. It will stay animated inside the post which is great. It seems to resize the .gif image ...
0
votes
1answer
227 views

Backstretch.js and thumbnail sizes to reduce loading time

I am using backstretch.js to set a featured image as a full size background image (as per this tutorial). I would like to combine this approach with different thumbnail sizes in order to reduce ...
0
votes
1answer
50 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
124 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
0answers
41 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
327 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 ...