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
0answers
18 views

Poor Image thumbnail quality [duplicate]

I'm trying to create high-quality thumbnails to display in my menu but cant seem to get a good resolution. We would like to avoid making our authors have to upload two different images so if there ...
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
3answers
595 views

Wordpress 3.3.1 not cropping featured image

When I add a featured image to any post the image is not cropped but it is always displayed full size. The media settings are ok... even when I call <?php the_post_thumbnail(); ?> in my theme, ...
0
votes
2answers
1k views

How to replace the_post_thumbnail template tag and show the first inside the post image instead

I want WordPress to return the first post image or a default image if no featured image has been set. My theme uses the_post_thumbnail many times, so I don't want to go through and change all ...
0
votes
2answers
120 views

Featured Image not shown and getting error “Object of class WP_Error could not be converted to int”

First of all I'm using twentyeleven theme, I created a custom template page to insert posts. It has 4 submit forms. it is working well, also setting feature image is ok for 3 forms except the first ...
0
votes
1answer
396 views

Call Featured Image from Parent Page

I am working on a site and each page group has its own featured image. I am trying to do a conditional statement in the header but not sure how to check for the parent page's featured image. ...
6
votes
4answers
9k views

Stop wordpress from hardcoding img width and height attributes

I'm wondering if there's a simple way top stop WordPress automatically hardcoding featured image height and width attributes, other than using regex... As I'm using a flexible grid for my project ...
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 ...
0
votes
0answers
280 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
2answers
1k views

Show different size featured images (the_post_thumbnail) for 1st, 2nd and 3rd posts?

I file all the galleries on my blog under the 'gallery' tag. I use the following code (via) to display the latest 7 gallery posts after the 8th latest post on home page: <!-- Featured post ...
0
votes
1answer
34 views

How to remove featured images from posts

Somehow my theme doesn't recomend featured images. That being said, how can i remove featured images from posts?
6
votes
6answers
2k views

Display thumbnail only if requested size exists

When I use the functions that get and output the post thumbnail, they will display the requested thumbnail in the size you specify, but if this size doesn't exist they will display the thumbnail in ...
1
vote
2answers
86 views

how to use the new image size

I am new to wordpress and i want to use a size which can be 300 x 283, i tried the the_post_thumbnail(array('300,283')) but it didn't work, then i went to read about add_image_size which i added like ...
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
1answer
57 views

Any disadvandages if I style the wordpress align classes without img and .wp-caption prefix

In various WordPress themes the margins are only applied to elements when they are images or captions /* Images */ .alignleft { float: left; } .alignright { float: right; } .aligncenter { ...
0
votes
1answer
217 views

Random Category with Recent Post Title and Thumbnail

This code below works perfect to pull the title of five random categories, the issue is for each random category I want the latest post title and thumbnail but where and how do I add the post query? ...
0
votes
1answer
256 views

Custom caption output for custom image size

I've done a lot of searching and have found out how to customize the img_caption_shortcode oputput. What I can't seem to figure out how to do: Add a specific class to the caption's output if a ...
1
vote
2answers
351 views

Make WordPress size and name images for Retina.js

I'm a huge fan of the way retina.js works for high pixel density displays. Essentially, when it's loading image assets (via <img> or css image) it will check if there's a @2x suffix version of ...
1
vote
0answers
113 views

Featured image not working, because of custom user role?

I've got a weird issue. My post thumbnails aren't working with a custom role. Images can be uploaded, and when viewing the media uploader they show as attached to the relevant post. However, when ...
0
votes
0answers
182 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
1answer
67 views

How can I debug what is wrong ? Featured images stopped showing

not sure when this happened, but my featured images are now not showing. Instead I see "NO THUMB" Any ideas how I can find the cause ? So far I have disabled and reenabled all plugins, to no avail. ...
0
votes
1answer
55 views

How to disable thumbnail filter for a specific template part or image size?

I am filtering post_thumbnail_html in my theme to modify the output of my image tags. I have one template part that I would like this filter not to apply to. It uses an image-size that is used no were ...
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
2answers
208 views

WP Insert post with post_thumbnail

Insert post thumbnail with 'wp_insert_post', i'm trying this code but does not work, the field 'get_field('imagem_do_produto') returns the url of the image, why not work? <?php $exists = ...
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 ...
1
vote
1answer
525 views

get_pages - Display child then grandchild pages

I have a page structure like this. Portfolio - Residential - - Resident 1 - - Resident 2 - - Resident 3 - Commercial - - Commercial 1 - - Commercial 2 - - ...
0
votes
3answers
105 views

Default thumb - how to set it

i need the code which will add default thumb, if there is not featured image available. I was using default thumb plus for this but this plugin is using a lot of resource so i need to remove it. I ...
0
votes
1answer
325 views

Featured Image If Else Condition

I have my banner background set to the URL of the featured image. <div id='xpro_shell_text' > <?php if (has_post_thumbnail( $post->ID ) ): ?> <?php $image = ...
1
vote
3answers
4k views

Featured image always rendered with 198px of height?

I added the following to my functions.php file: set_post_thumbnail_size( 500, 500); I enabled featured image (support => 'thumbnail') in a custom post type a created (called Page Content). When ...
1
vote
1answer
299 views

Delete all thumbnails for a post

I have a function that sideloads a YouTube thumbnail onto a page... but I want to remove the featured thumb on the page first (and remove all the various auto-generated sizes, too). I'm assuming I ...
0
votes
2answers
3k views

Query to delete all featured images and remove post meta?

I'd like to run an SQL query to find all featured images from posts and delete the file itself and any references to it. Can anyone tell me how to accomplish this? Many thanks!
0
votes
2answers
149 views

Wrapping Featured Image on Add/Edit Page in div?

is it possible to wrap the featured image on the add/edit page in a div or other code? I don't mean on the front page of the website, but on the back end on the add/edit pages when you're typing up ...
0
votes
1answer
53 views

Edit Media - Edit Custom Sized Featured Images

When I edit images in the wordpress backend - crop, aspect ratio etc. my featured images don't change. I've tried all combinations of saving (All image sizes, Thumbnail, All sizes except thumbnail). ...
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 ...
1
vote
2answers
777 views

Post featured image column on admin post list page

I have a client site which accepts images from users as posts. For moderation, we are opening each draft post which obviously takes a lot of time if a hefty amount of images are moderated. So, Is ...
-1
votes
1answer
58 views

Where is the template from the_post_thumbnail()?

My content.php is used both for my front page than for my single posts. The problem is that it calls the thumbnail with "the_post_thumbnail()" and the thumbnail returns with a particular width and ...
0
votes
1answer
113 views

Hide WooCommerce Product Gallery Images

I have a problem with adding images to the content/product description and stopping them from showing in the gallery below the featured image. They are downloadable products & some of the images ...
1
vote
0answers
194 views

“Medium” size image displayed instead of “thumbnail” in only one post, other posts are fine

Please take a look at this cicada photo - http://photo.aseev.com/stock-photo/cicada-exuviae/ - below you will see 5 thumbnails, all of them are squared, except one (a bug on white background). It is ...
1
vote
1answer
755 views

Featured image for first post only

I'm currently having some difficulties showing a featured image for the first post only. Currently the image only shows if the post is the only post or if the post is a sticky post. (I realize this ...
1
vote
0answers
66 views

Image Editor does not affect custom sizes!

Recently working with wordpress 3.5, I came across this patch :http://core.trac.wordpress.org/ticket/19889 ...which solved the problem of custom image sizes defined by my theme not resizing or ...
0
votes
2answers
179 views

hrecipe microformat tag to “featured image”

I have a website made with wordpress which includes recipes. Now I would like to add the "photo" hrecipe Microformat tag in order to have a thumbnail on Google searches (hrecipe photo tag) My recipes ...
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?
0
votes
1answer
115 views

Advanced Custom Field User Help URL

Hi I'm using ACF or Advanced Custom Fields which i saw here a while ago.. What i want is to output a second featured image in the homepage.. Question: 1 <div class="jpl-widgets-d" ...
1
vote
1answer
359 views

Exclude featured image from attachment loop

For my jigoshop theme I'm able to retrieve the images attached to my product post. However it pulls all images from both the featured image and my metabox images. What I'm trying to do is make it so ...
-2
votes
2answers
64 views

php code for image fetching

<?php mysql_connect("localhost", "xxxxxx", "xxxxx") or die(mysql_error()); mysql_select_db("xxxxx") or die(mysql_error()); $data = mysql_query("SELECT p1.*, wm2.meta_value FROM ...
0
votes
1answer
207 views

Remove Featured Image from posts in specific category?

I am building a theme that includes the featured image as a navigation feature outside the single post, but once the user gets to the post in category "Specials", I'd like to take that image away. ...
0
votes
0answers
75 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
1answer
516 views

How to add thumbnails to posts and pages automatically in a uniformed fixed elegant way?

please i am wondering if there was a plugin or hack that enables me to append a nice looking thumbnail for each post or page i publish on my blog. Currently, i am able to add the featured images but ...
0
votes
1answer
73 views

Placing a featured image into header

How can I place featured images into the header, so each post has it's featured image within the main header? Also on category archive pages and the main news page, the featured images are being used ...
0
votes
1answer
972 views

Featured images loop for Orbit Slider

To integrate Zurb´s Orbit Slider in my theme, I´m trying to generate this HTML with WordPress: <div id="featured"> <img src="featured-image-1.jpg" alt="the-alt-tag" ...