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
0answers
50 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
951 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
161 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
1answer
128 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
0answers
6 views

how to display post exerpts for recent posts? [duplicate]

Possible Duplicate: how can I list recent posts' excerpts I am trying to display post excerpts for 3 of my recent posts. I have tried using the code below but it displays the excerpt of ...
0
votes
2answers
41 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
241 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
320 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
0answers
13 views

Migrating to a new theme - Thumbnails - Custom Field to Feature Image [duplicate]

Possible Duplicate: Set post-thumbnail (with php)? I'm moving to a new theme where featured images are used as thumbnails, until now, I've been using image as a custom field in my existing ...
0
votes
1answer
40 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
138 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
535 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
135 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, ...
0
votes
1answer
420 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
156 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
268 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
112 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" ...
0
votes
0answers
116 views

media_sideload_image and set_post_thumbnail are returning the wrong image

I have a script set up to grab a YouTube video thumbnail based on a custom field if the post does not have a thumbnail set upon save_post function set_youtube_as_featured_image( $post_id ) { if ...
1
vote
1answer
336 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
721 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 ...
0
votes
1answer
162 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
119 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
207 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
110 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 ...
2
votes
1answer
201 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
56 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
95 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
134 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 = ...
0
votes
2answers
198 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 ...
1
vote
1answer
326 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
29 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
46 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 ...
1
vote
1answer
611 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
26 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
143 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
108 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 ...
0
votes
1answer
87 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 ...
0
votes
3answers
229 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
145 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
93 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
167 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
325 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 ...
0
votes
0answers
69 views

Blog posts display link url of the thumbnail image [closed]

Im new to worldpress and i have encounter a problem that i cant fix by my self. I wanted the blog posts thumbnail image to be linked to its orginal size in lightbox so when clicked it works well. ...
1
vote
1answer
92 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
63 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
694 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 */ ...
2
votes
2answers
534 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
130 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
146 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
211 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 ...

1 2 3 4 5 11