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
2k 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
986 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
213 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
2answers
459 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
1k 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
184 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
934 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
11k 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
575 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
1k 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
1k 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 ...
1
vote
1answer
499 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
325 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
2k 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
1k 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
619 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
748 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 ...
3
votes
3answers
1k 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
400 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 ...
5
votes
2answers
1k 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
242 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
1k 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 ...
0
votes
2answers
672 views

Multi post thumbnails doesn't return anything

I am using the multi post thumbnails plugin. I have a custom post type "artist" who has a logo. In the loop I want to echo out the following: $logo = ...
1
vote
2answers
487 views

Issue where WP Featured Image will not display

The code I'm using, is outside of WordPress i.e. define('WP_USE_THEMES', false); require('blog/wp-blog-header.php'); global $wpdb; The code that I'm trying to display the post thumbnail (the ...
2
votes
1answer
5k views

How to crop thumbnail height to auto with set width

I'm looking for a way to only set the width of a thumbnail size and let the height set auto. So if I have two images. One is 600px/420px and one is 600px/600px. I want to set only the width of the ...
0
votes
1answer
42 views

Change role's settings influence post-thumbnail

In my theme functions.php i get code: add_action( 'admin_init', 'my_remove_menu_pages' ); function my_remove_menu_pages() { if(!current_user_can('delete_others_posts')) { ...
1
vote
1answer
56 views

Images not working using Featured post

I have recently moved a wordpress website abc.com to xyz.com, And xyz.com functionality is good and working well. And i have created a post with a image in it using Featured Image, and when i publish ...
3
votes
2answers
6k views

Set Featured Image Front Frontend Form

I have been struggling for days to figure this one out. I have successfully implemented a form to submit posts from the front end of my site. ButI can't figure out how to make the image uploads work. ...
1
vote
1answer
48 views

Sidebar Thumbs Squished?

My Thumbnails seem squished for some reason even though I copied the code from some thumbnails I have that seem to be working fine. The code that works: in index.php <a href="<?php ...
1
vote
2answers
388 views

Layer post title on top of image Wordpress featured thumbnail image

I'm currently trying to layer a post title on top of the posts featured image but all I see at the moment is ");">" instead of the image. The code I'm using is as follows: <div ...
0
votes
2answers
253 views

How can I get the featured image or the first image for a post/page and display it as a banner?

I'm making a travel site and for each page/post I want to display a google map and an image of the place referenced in the post/page the image is kind of banner-size so I dont think that the post ...
1
vote
1answer
155 views

Category index featured image

I wish to set a featured/header image for each of my category archive pages, how would I go about doing this without hard coding each category into the theme? An example of the page is at ...
1
vote
3answers
2k views

How to add/assign or change featured image in post programmatically?

I have written a plugin that (besides other functionality) makes posts from existing content. For each post I have one picture - how to make them featured programmatically? I do the: $id = ...
0
votes
3answers
777 views

Setting post thumbnail sizes in template file and functions.php

For my post I have a box for the post image and the size of the box is 214 x 73. I want the image to fit the width of the box and have it cropped at 73px height. This is what I have so far in my ...
2
votes
1answer
322 views

Adding a custom field or metabox to the post-thumbnail widget?

Is it possible to add a custom field to an existing "widget" in the backend? What I wanna do is provide a way to have a checkbox to apply a thumbnail that is double the size of the normal one on the ...
1
vote
1answer
442 views

Getting images to show up in RSS Reader

I'm trying to get posts' featured images to show up in RSS Reader. When I look at the raw RSS XML I can see the images are successfully being written into <description> and also under ...
0
votes
1answer
6k views

Change featured image urls in database

Im storing my images on another server and Ive managed to change the urls in the database but I cant seem to change the featured image urls? I will not be adding any more images so I just want to ...
1
vote
1answer
450 views

Echo URL of large version of Featured Image

I use this plugin to echo the URL of a post's featured image in the header: <?php /** Plugin Name: Post Thumbnail FB header */ function fb_header() { // Not on a single page or post? Stop ...
2
votes
1answer
194 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')): ?> ...
0
votes
2answers
2k views

is there a way to remove featured image from blog page and single page

<?php /* * * The default template for displaying content. Used for both single and index/archive/search. * * @package WordPress * @subpackage Twenty_Twelve * @since Twenty Twelve 1.0 */ ...
4
votes
2answers
3k views

Featured Image of Video from oembed

For Wordpress, I want to auto generate thumb of the video embedded on a page using oembed? And then save it as a featured image of the post. Any idea how to do this?
0
votes
2answers
294 views

Featured image for social sharing ot author archive page

Personal blog with occasional guest authors (non-commercial) self hosted Wordpress. I create a bespoke author PHP file for each author (example). I use Yoast SEO and set a default image for meta ...
1
vote
1answer
197 views

Multiple featured sizes / images / excerpts

Usually I google but I couldn't find an answer for my problem. Most entrys I found were dealing with adding extra featured image sizes, but not when it comes to having different featured image sizes ...
0
votes
1answer
667 views

Only show featured image on exerpt and exclude images in post

I have below code which displays the featured image from the post. But when I add an image to the post it also shows up with the featured image. What I need to do is just show the featured image and ...
0
votes
1answer
55 views

Removing Title Tag from Thumbnails

I'm currently adding thumbnails to my page with: <?php the_post_thumbnail( 'category-thumb' ); ?> and this in the fuctions.php: if ( function_exists( 'add_image_size' ) ) { add_image_size( ...
1
vote
0answers
356 views

Can't Set Featured Image

I have installed the MarketPress plugin from WPMU. I have an ongoing issue with featured images. When I try to set the featured image (in any post) it continually hangs on saving. My problem is that ...
2
votes
1answer
2k views

Thumbnail and Featured Image With Fixed Sizes?

In my index.php file, I'm trying to create a thumbnail for each post with the size width: 200px and height 142px. And on the single.php, I would ike for the featured image to be width: 598px and ...
-1
votes
2answers
587 views

Editing featured image

How can I edit the featured image? Usually I upload the image in media, there is one option which says "use as a featured image". This works fine but the output image is badly cropped. I want to know ...
1
vote
2answers
1k views

Photo gallery with Featured Images

First, I need to ask if it's possible to create a photo gallery only with the featured images of the latest 6 posts? I assume it is possible but just want to make sure. I don't have much experience ...
0
votes
3answers
634 views

how i can increase Featured thumbnails size?

when i open any post then 1st image show my featured image. i want to increase this size . see it or . i already try to increase from single.php to change this code <p><img src="<?php ...