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

How to get custom image sizes into media uploader dropdown?

I searched net to solve the problem with images size uploaded from media. But not even one worked to me. When I try to insert images from the media into post it does not show my custom image size 608 ...
0
votes
1answer
134 views

Display First posts without the default featured image

How can i display in loop (paged) the posts without the default featured image ? Here is my query of my custom taxonomy template page : <?php $term_region = get_term_by( ...
0
votes
1answer
121 views

Featured image in admin on custom post type

I followed this tutorial to getting featured images to show in the admin menu on posts. I wanted to be able to see what article had a featured image and what it looked like without having to actually ...
0
votes
0answers
125 views

wordpress MU display post thumbnails from sub blogs in main site homepage

I have a wordpress MU network with main site and sub-blogs. I was looking all over the internet and couldn't find a good answer to what I am trying to accomplish which seems pretty easy to me. I am ...
2
votes
1answer
280 views

Featured image size in ADMIN panel?

I want to be entirely clear about this, what I'd like to do is change the size of the featured image thumbnail on the ADMIN panel, not on the front end. I'm building a WP-admin theme, and I need to ...
0
votes
1answer
132 views

Featured Image inserted through custom query, does not show up

I need to transfer all my records from OpenCart to WooCommerce powered WordPress site. I used custom query to insert the image urls from opencart db to wp_posts as attachment and guid as the URL of ...
0
votes
1answer
52 views

how to create extra post thumbnail with merge of an icon image?

I am searching a way to merge image of play button icon to featured image of the post. Bay be possible between add_image_size process. if ( function_exists( 'add_image_size' ) ) { ...
0
votes
0answers
98 views

Customized featured image doesn't refresh in post admin metabox after upload/insert

I customized my featured image metabox position, the default name, and text for a custom post type. While I'm able to add/edit an image in post admin, after I have uploaded an image, the post admin ...
0
votes
1answer
221 views

Trying to check and see if a post has a featured image outside of the main loop

I've got a situation where I need to find out if the currently loaded post has a featured image, if it does, I want it to display a different logo than if it doesn't have a featured image associated ...
0
votes
1answer
148 views

set_post_thumbnail when user is not logged in

I'm currently using the set_post_thumbnail() function to insert a programmatically uploaded image to a post. The problem is that the function works perfectly when the user is logged in only. If the ...
0
votes
1answer
435 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 ...
0
votes
0answers
34 views

wp_get_attachment_image_src match smallest edge

I'm trying to get the minimum image source that fills the given size. wp_get_attachment_image_src(get_post_thumbnail_id(), array(180, 180)) gets the image which fits the size and not which fills it. ...
0
votes
1answer
557 views

add_image_size and add_filter('image_size_names_choose', 'my_custom_image_sizes') not working with wordpress 3.5.2

I'm tearing my hair trying to get additional image sizes appear in the media section when i upload new pictures. It works on older versions of wordpress but i can't get it to work on v 3.5.2 Here's ...
0
votes
1answer
106 views

Only Display a Featured Image on First Post Page

In WordPress a single post can be divided into multiple pages using page-links. Currently, I use featured images on my post pages and call them by size, as shown below. If an image is larger than ...
0
votes
1answer
63 views

Convert featured images into “product images”

I am developing a large ecommerce site using Wordpress and WP Ecommerce plugin. I recently overhauled the theme and framework. Where as before I was only required to set a featured image for a ...
1
vote
0answers
256 views

Cleaning up bloated wp_postmeta table by removing multiple _thumbnail_id's?

On a very old site (7 yrs) with a lot of posts (30k) I've been trying to whittle down the database tables. The postmeta table is 1.5m rows, 750k of those rows are for a meta_key named ...
0
votes
1answer
266 views

Use Featured Image for backstretch.js

I'm using backstretch.js for full-width header images on my pages. I'm able to grab the Featured Image url like this: <?php $src = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), ...
0
votes
1answer
235 views

Add image size array to a portfolio thumbnail in combination with Masonry Jquery Plugin

add_image_size( 'category-thumb', 250, 9999 ); //300 pixels wide (and unlimited height) I am using the above code within my functions.php file, to generate various thumbnail sizes for my masonry ...
0
votes
1answer
405 views

Cannot upload featured image to a custom post type

For some reason I am not able to upload images OR set the Featured Image on a custom post type in my custom wordpress theme. I have added theme support of post-thumbnails to my functions.php file and ...
0
votes
2answers
65 views

How to get the image sizes, in a function, as per the sizes mentioned in the media settings?

I'm making a custom function for my WordPress site. function mediumFeaturedImage() { if ( has_post_thumbnail() ) { ?> <a href="<?php the_permalink(); ?>"> <?php ...
0
votes
1answer
233 views

Displaying and Querying Posts with Featured image

I have added Featured image support for my posts by adding the following in the functions.php add_theme_support('post-thumbnails'); I created 3 posts with Featured Image and i want to display them ...
2
votes
2answers
406 views

Implementing Zurb's Interchange Into Wordpress

I'm really scratching my head trying to figure out the best method for responsive images with Wordpress. Zurb just released a new javascript plugin for their Foundation framework. I'm using Foundation ...
0
votes
2answers
326 views

Display child pages on a parent and child page using Featured Thumbnails

How would I display a list of my child pages using featured images on a its parent page as well as its other siblings child page? For example, if my parent page is called 'Music', I'll have my main ...
0
votes
1answer
159 views

apply_filters to featured image

I have a page where I have embedded the page using these lines of codes at function.php: //------Embed Content------ //Title function CustomFunction_ShowPage_Title($id) { $post = get_page($id); ...
0
votes
1answer
100 views

setting featured image is not working while running script in background, works when running that script from browser

I have creted a script which will fetch content from one of my site and automatically create new post in my wordpress blog. When I am running that script from browser, its working really cool! post ...
0
votes
1answer
387 views

How do I import external images into my site so I can use them as featured images?

Would like to use Flickr and other externally hosted images as the post thumbnail/featured image. Would like to use the PHP in the child theme as a custom function rather then edit parent themes ...
0
votes
2answers
2k views

Add class name to post thumbnail

I'm using post thumbnails to link to a page. Is it possible to add a class name to the post thumbnail image. <li><a href="<?php the_permalink(); ?>" ><?php the_post_thumbnail(); ...
0
votes
1answer
56 views

resizing of thumbnails not working

i have the following in my functions file from the wordpress codex <?php add_filter('show_admin_bar', '__return_false'); if ( function_exists( 'add_theme_support' ) ) { add_theme_support( ...
0
votes
1answer
932 views

Define width of featured image thumbnails, but also make responsive?

So I know how to define thumbnail images with set_post_thumbnail_size and it works, but the issue is that the image isn't responsive when I do that, right? When I define the thumbnail to be 300 x ...
0
votes
3answers
285 views

Crop featured image by default

I'm having trouble finding out how to accomplish this - I want to display a cropped version of an image in the post. So when it's uploaded, it would automatically be displayed cropped. Is there any ...
1
vote
2answers
89 views

Only Display Thumbnail if Larger Than

Is there a way to only display <?php the_post_thumbnail( $size, $attr ); ?> if it is larger/smaller than specified dimensions?
0
votes
1answer
75 views

Choose to Display Post Thumbnail?

I noticed the website http://gawker.com/ does something cool with images in posts - some posts have a large featured image above the title, others have none and just have images in the content. My ...
0
votes
2answers
68 views

Displaying Post Featured Images on All Pages

First, let me start off by saying I'm very new to WordPress. I've only ever done basic themes before, this is my first big project. I'm working on a design that has two sidebars on every page. Each ...
0
votes
1answer
337 views

images not showing despite using add_theme_support('post-thumbnails');

I've got a system for post images where I have a specific category's post thumbnail shown in the header, with a cropped version appearing in the blog #preview, and the full size image appearing in the ...
0
votes
2answers
66 views

What can i do add title to 'large' image?

<?php if ( has_post_thumbnail()) { $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large'); echo '<a href="' . $large_image_url[0] . '" >'; ...
0
votes
2answers
159 views

featured image inside post

I want the featured image of a post to display not only in the blog list view, but also inside the post (when i press "Read More..."). How do i do that? I pasted this if ( has_post_thumbnail() ) { ...
2
votes
3answers
1k views

How to set featured image to custom post from outside programmatically

I am trying to fetch and insert images outside the wordpress environment to a custom post via PHP. How to move/upload that image to wordpress upload directory year date folder format just like ...
1
vote
1answer
103 views

Skip posts without a thumbnail in loop

I want skip every post that has no thumbnail. The code does not work properly yet. Actually the script doesn't show posts without a thumbnail - that's good, but in the loop the post with no thumbnail ...
0
votes
0answers
117 views

Set Featured Image from Form in Front End

I am creating a front end creator/editor for some custom post types. I wanted to have a button that opened WordPress' "Set Featured Image" modal (as is found when creating a post from the admin ...
1
vote
2answers
94 views

Allow author to choose his featured image size

Request from a client. He wants his authors to be able to upload their image and then set it as featured, just like normal. The difference is that when setting it as featured, he wants the author to ...
1
vote
2answers
293 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
95 views

How to replace featured image upload option with the post media image option

I am looking for a way to insert custom URL links in featured Image as well. Currently Featured image tab is only having these basic settings - But I want to add custom URL links to my featured ...
0
votes
2answers
596 views

Add Image Size for Featured Image with Responsive Design

So, I know that I can make a custom featured-image size by adding this to my functions.php file: add_image_size('newsize', 883, 300, true); and calling it with: the_post_thumbnail('newsize'); ...
0
votes
2answers
518 views

specify size of post preview image (not post thumbnail)

On the main page of my blog, I have a section in the header with post thumbnails(140x170px) linking to specific categories. Below within the actual blog loop, I also have post previews- an image ...
0
votes
1answer
184 views

display post thumbnail for specific category outside of loop

I'm building a theme that features a section wherein I'd like to have the single most recent post's thumbnail of a single category displayed between the header and blog sections. Something like ...
0
votes
3answers
257 views

Add title to image post

I can't add the title on a featured image in the recent posts. try this but only get the alt <?php $default_attr = array( 'src' => $src, 'class' => "attachment-$size", ...
0
votes
0answers
188 views

Is there a way to force Featured image to show as attachement?

When adding an image as a featured image to a post - if the image is an existing image in the Media Library, then the image is not added as a true attachment but as a thumbnail, shown like this in ...
0
votes
1answer
198 views

Create post thumbnails from images stored outside of uploads directory

I am redoing some of my older blogs and I noticed with the new themes most of them take advantage of featured images which is fine. The problem is a lot of my older posts that was never set either ...
0
votes
0answers
144 views

the_post_thumbnail(“size”) returns same image for all sizes except thumbnail

I've got 3 default image sizes set up in "Setting > Media Settings > Image Sizes" However, when I use anything but "thumbnail" as the image size parameter in the_post_thumbnail(), it returns the full ...
0
votes
1answer
144 views

Displaying warning if no featured image has been set - Post Editor

I run a multi-author website and many of my users are forgetting to set a featured image for their post. This is a big problem as my theme depends highly on featured images to keep a consistent feel ...