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

Getting Featured Image Caption to Only Show if Populated

Good evening! I'm trying to hide the featured image caption from showing. Currently, it'll show build the div (but not populate it because it's empty). What I'd like to do, ideally, is only show the ...
0
votes
2answers
324 views

Featured Image keeps cropping

I've spent hours trying to figure this out and its driving me mad. I'm not great with php code so I'm not sure if I'm doing this the best way anyway... It should be simple - I have built a custom ...
1
vote
1answer
294 views

WP Query to set post thumbnail for existing old posts

I found this PHP code that will set the first attached image as the post thumbnail. http://wordpress.stackexchange.com/a/23768 Is it possible to loop through old posts that have attachments using ...
0
votes
1answer
51 views

Outputting content from page

I'm trying to display a title, featured image, and content from a page into a new template (that will contain content from several pages). I tried to just echo the variables as shown below, but right ...
1
vote
3answers
172 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
0answers
182 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
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
578 views

Cropping thumbnails to specific dimensions on front end post

Probably not the best title description but here we go. One of my custom post types is for youtube videos which I take the thumb from youtube and upload it as a thumbnail for the post. Now it's easy ...
0
votes
1answer
163 views

Title image is missing ( but is not the WP 3.5 issue )

I use Wp 3.4.2 and Featured Image. After I feel the Title, Alternate Text and publish the post, html code looks like this: <img width="214" height="300" title="" alt="Test" class="frame ...
0
votes
1answer
303 views

Getting img src from thumbnail_id using javascript

I'm using the JSON API and Multiple Featured Images plugins to try and display an image within a Google Map marker. The Multiple Featured Image plugin only stores the Thumbnail ID which I then ...
0
votes
1answer
67 views

I would like my posts to pull my custom cropped thumbnail instead of creating its own thumbnail from Featured Image

Firstly, I'm not a developer, mostly a website designer and CSS hacker. I'll try to explain better: I'm using a grid theme that creates a thumbnail out of the featured image to display as a post ...
0
votes
1answer
278 views

Resize uploaded images [duplicate]

Possible Duplicate: Resizing all images I have this news portal i built, and the client want a different size of the featured image. I all ready made my first desired size and they have ...
2
votes
2answers
415 views

How might I retrieve a featured post image from an external WP site and display it as a link back?

I have two WP sites. I want to reach from one of them, into the other, and retrieve specific featured images for posts, and display them with a link to that post. I am using this line (with the ...
1
vote
2answers
173 views

what is the difference between timthumb and post thumbnail?

I get the image through wordpress built in post_thumbnail, but i see a lot of developers use timthumb for that and i don't know why! is it more flexible or something?
0
votes
1answer
68 views

Pages with a loop (index, archive) are loading the first image as post_thumbnail

Using post thumbnails for custom header images -- works fine on straight pages. But custom templates that load a loop (including index) are pulling the first image instead of using the one set in the ...
-1
votes
2answers
212 views

Excerpt with image

I would like to use my excerpt field to display a different image for each post to represent that post. For instance a post about a new album instead of having a title/text excerpt would simply be an ...
0
votes
1answer
89 views

Insert link to my thumbnail images

I am try to insert link to my thumbnail images, the link is hyperlink with post. When i put this code inside the loop then instead of showing the first image, first show the second image ...
5
votes
2answers
393 views

Require featured image

I would like to require a featured image on a site I am developing. I tried the code here: Make featured image required and nothing happened - the JS showed up in the site header, but I could still ...
2
votes
1answer
315 views

How to List Thumbnails based on Custom Categories

I need to list(display) all thumbnails from my Custom Post Types in a page template based on product categories. For Example I have a Custom Category called "Art" and some images(Custom Post Type) ...
3
votes
1answer
931 views

How can I add a set featured image function to a theme that doesn't already have it built in?

I'm a relative newbie to WP and PHP in general, but now that I'm into it, I've caught the "WP fever" and have ditched asp.net. I finally found a quality theme that I like and I'm considering buying ...
0
votes
1answer
288 views

Featured Images not appearing

I'm helping a friend with a WordPress blog since I'm a "computer person," although I have no specific WordPress experience and I haven't used PHP in years. So, I really appreciate any light that ...
0
votes
1answer
223 views

How can I access a post's feature image outside the loop?

I want to update my <meta property="og:image" content="http://amemoirproject.com/facebook/og-image.png"/> tag in the head with the current post's feature image. How can I do that?
0
votes
1answer
115 views

how to make nsfw post with thumbanil

iam making a comic site like 9gag the front end upload page contains title upload image tags NSFW [checkbox] if every thing is normal the image become featured image of the post , i want the NSFW ...
0
votes
3answers
107 views

Can this be done? Create 50x50 thumbnails of all existing featured images?

Just trying to get a scope of work estimation for a project I need done. My wordpress theme has a custom menu that works best with featured image thumbnails that are 50x50 pixels in size. If the user ...
0
votes
1answer
1k views

Remove image classes from post thumbnail output

I wish to remove the image classes generated by default in the output whenever post_thumbnail() is called - <img width="1024" height="768" ...
0
votes
2answers
291 views

Child Category Image

I have some code that display's the titles of my child category posts on one of my pages: <?php $parent = get_cat_ID("photos"); $cats = get_categories('child_of='.$parent); foreach ...
1
vote
0answers
51 views

Save Thumbnails From wp_oembed_get Function [duplicate]

I'm using the wp_oembed_get function to display embedded videos on a site I'm working on, what I'm trying to figure out is how I can use wp_oembed_get save the thumbnail of the embedded video to the ...
1
vote
2answers
2k views

Errors when uploading images in WP 3.5

I'm trying to upload images in WP 3.5 to set featured images for posts. Unfortunately I get the following error message: An error occurred in the upload. Please try again later. The installed ...
0
votes
1answer
585 views

How to query posts with featured images

I basically want to use WP_Query to select 3 latest posts which have featured images and this is the only way I can think of. regards edit tried $query = new WP_Query( array( "post_type" => ...
0
votes
2answers
507 views

Smaller thumbnail in the_content

My site is basically a Pinterest style product catalogue with atleast one image per post. I upload large images, thumbnails of which are automatically generated by wordpress BUT the website has been ...
0
votes
2answers
101 views

How can I find the first post in a category that has a featured image and then return the get_the_post_thumbnail()?

I have a function that I thought should find the first article with a featured image in it, and then return that image. Not sure if this is the best way to go about it, as it's giving me a 502 Bad ...
0
votes
1answer
321 views

How to make featured image thumbnails on index page load smoother?

I'm using a theme called Hatch Pro, which is a gallery based theme and the index page displays the posts using the featured image. You can see it here. On slower browser environments, the images ...
0
votes
2answers
663 views

Video playing from featured image?

If I embed a YouTube video into a post, how do I put a play button over the featured image so that the video can be played without having to open the whole post? I.e Flipboard the iOS app has a ...
0
votes
1answer
89 views

How to display original unmodified thumbnail

I have uploaded a few images that are being used as thumbnails. I cropped them within WordPress to be square and focus on the subject of the image. I have also got a slider that is rectangular and ...
0
votes
1answer
457 views

Making featured image to show on home page

I am working on twenty twelve theme. Whenever I post an image gallery, it shows all of images including featured image on front page same as it looks inside. I wanted it to just show featured image on ...
0
votes
1answer
2k views

get featured image url by page id

I am using wordpress 3.4.1. I need to display the featured image of a page. How can i get the featured image url by particular page id. Any help?
2
votes
2answers
305 views

Resizing Images to lower Disk Space Using Plugins

I'm trying to take existing images and shrink the file size down by resizing to photos to a smaller resolution. I've tried a few methods so far: Simply editing the photo in photoshop and reuploaded, ...
1
vote
2answers
868 views

Can't Display Featured Image in RSS Feed

I'm currently working on a test website on my local server using WordPress version 3.4.2. I've tried various different solutions. Some have included installing various plugins, such as WP RSS Images ...
1
vote
2answers
452 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 ...
0
votes
1answer
379 views

Site not getting correct featured image from my query

On the home page of my site I have a series of tiles that link to various parts of the site. One tile links to the blog and I have written some code to pull the latest post with an image attached to ...
0
votes
2answers
198 views

the_post_thumbnail('medium') still gives thumbnail-size img

All the sources mention this as if it worked. Medium size is set to 635x194, but I still get this out: <img width="100" height="100" title="fjaril" alt="fjaril" class="attachment-thumbnail" ...
1
vote
1answer
1k views

How to scale image with equal width and height without distortion?

I have a section on my frontpage that querys through recent posts and grabs the title and thumbnail of each. In my functions.php, I've specified a width and height for the thumbnail using: ...
0
votes
2answers
990 views

get_the_post_thumbnail wordpress 3.5

For some reason the following isn't loaded anymore in wordpress 3.5. Does anyone know how to fix the get_the_post_thumbnail() ? I'm using the follow code: echo "<div class='meta_apps'>"; echo ...
1
vote
1answer
351 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 ...
4
votes
1answer
322 views

Move from old custom field to new post_thumbnails

I've just taken over a busy WordPress site that's got ~800 posts so far. The site's been around long enough that it was started up before post_thumbnails was available. They worked around that ...
1
vote
2answers
580 views

Specific featured image for each category

I´d like to set specific featured image for all posts in one category. So, if I have category Good Jokes, all posts in category Good Jokes will have the same featured image displayed in front page. ...
0
votes
1answer
220 views

Regenerate Thumbnails Plugin successfully updated my thumbnails but image src won't change to new image size?

I "successfully" regenerated my thumbnails using the Regenerate Thumbnails Plugin as I added a variety of new image sizes to my site; however, I'm having difficulty getting these new images sizes to ...
3
votes
1answer
497 views

Make featured image required

Is it possible to force user to set featured image on some types of posts. For example I've got custom post type mm_photo and I want to show some error message or somehow block user from publishing or ...
0
votes
1answer
107 views

Retrieve post thumbnail as array

How can I retrieve the post thumbnail (featured image) as an array? Using get_post_thumbnail() I noticed in the WP documentation that there is a third parameter from, which I understand, one would be ...
0
votes
1answer
876 views

the_post_thumbnail('my_image_size') always outputs full image

I'm developing a custom theme that uses several custom image sizes defined in my functions.php like this: add_theme_support('post-thumbnails'); add_image_size('featured_thumb', 175, 120, true); I ...