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
399 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
11 views

featured image metabox not showing on the default post types edit page

I can't get the Featured Image metabox to show up on the edit page for the default post and page post types. Though as opposed to this question, it does work for the custom post type I've created ...
0
votes
3answers
30 views

get_thumbnail_id returns full size image

I want a thumbnail of the featured image of the posts as a URL. So I'm using the following code to get a smaller size of the featured image. $post[$i]['thumbnail'] = ...
0
votes
1answer
338 views

Extract featured image from link mentioned in blog post

You ever notice Google News has relevant images associated with its headlines? How can I use WordPress to extract a featured image from an external webpage referenced in a blog post (or custom ...
0
votes
2answers
2k views

Height and width attribute not setting by the_post_thumbnail

I am using following code to display images in home page: if ( has_post_thumbnail() ) {the_post_thumbnail('postbox-thumb') But the output of the above code does not have height and width of the img ...
1
vote
4answers
5k views

remove and disable image link in functions.php

Is there a way to disable image or thumbnail link URL, as well as remove existing image/thumbnail links in functions.php? NOT the setting under media as posted in this link, please.
2
votes
1answer
907 views

Allow user to manually set crop area of default/custom image sizes on upload [on hold]

I'm looking for a plugin that allows the user to define where the image will be cropped for a given thumbnail size. For example, the user uploads an image, a screen comes up with the image and a ...
0
votes
1answer
265 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. ...
1
vote
2answers
758 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 ...
1
vote
1answer
803 views

Archive show thumbnail

I want to show thumbnails next to my posts in archive page, however it only shows thumbnails if the posts has a featured image. So I want to show thumbnail for the image attached to the post, but I ...
0
votes
2answers
393 views

How to add icon over specific thumb

I wanted to do the following, and I know its possible, but I don't know how. I'm looking at in_category, but it doesn't make to much sense. Basically what I want to do, for an example on my homepage, ...
0
votes
0answers
14 views

Create Featured images on the fly

The title is too short to descirbe what i want to accomplish so let me start. I have a custom type ('chesspuzzles') and I want to create the featured images on the fly (and use them in widgets too, ...
0
votes
2answers
281 views

Display Random Thumbnail from Category

I have a feeling that I'm on the right track, I just don't have enough solid PHP knowledge to get much further than where I'm currently at. I'm currently using the following code to return a list of ...
0
votes
1answer
41 views

Page featured image not showing on home page

I'm creating my own theme, my little practice. I added the_post_thumbnail in index.php page. All latest post's featured images are showing on home page except Page featured image. While I added ...
1
vote
1answer
430 views

How to set the jpg image compression for specific thumbnail sizes?

This question was asked on Set JPEG compression for specific custom image sizes and answered very nicely by Ahmad M I'd of course comment to that thread but I don't have 50 point reputation... The ...
1
vote
1answer
478 views

How I upload, save and set a featured image from my frontend?

I have a form in my site. This the user register one missing person. I created a custom post type missing person, custom taxonomies and custom fields. All this input's save as well in wp. But I ...
0
votes
1answer
722 views

Custom field image to Featured Image

I'm changing the theme of a blog. The problem is when I export the content from the old post and import it into the new one, I don't get the Featured Image. It's the same problem posted here: Move ...
1
vote
1answer
890 views

Custom Image Thumbnails of Different Sizes

I have a Custom Post Type which contains custom fields for uploading images of different types for a portfolio site. For example: (logos, websites, print-ads, etc...). I plan on uploading images of ...
1
vote
3answers
1k views

Show featured image in sidebar

I'm adding a widget on my sidebar but the Featured Image isn't shown. this is the code of my side bar: <?php /** * The Sidebar containing the main widget areas. * * @package PowerMag * @since ...
4
votes
3answers
722 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
1answer
437 views

How to make a Thumbnails Mosaic

I would like to make a mosaic with all the post thumbnails of a category and use it as the heading image on the category page. How do I go about achieving this? Where do I start? Any suggestion about ...
1
vote
1answer
41 views

Thumbnails produce unwanted gray pixels on white background [closed]

Is there a workaround for producing QUALITY "Featured Image" thumbnails of different sizes? WordPress produces compressed thumbnails that contain grey pixels where it should be a completely white ...
0
votes
1answer
606 views

Pirobox Gallery from single image link

I need to have the post thumbnail image link to a gallery of post attachements displayed using pirobox. This is the code i use: <?php if(has_post_thumbnail()){?> <div ...
1
vote
2answers
425 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 ...
0
votes
1answer
3k views

How to add multiple featured image in meta box in post editor?

I would like to add multiple featured image in meta box in post editor area apart from default available featured image. I have added the meta box but i have no idea on adding the featured image ...
0
votes
2answers
402 views

Display post thumbnail for specific category outside the 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
2answers
26 views

Remove link from post images

When Upload images from Editor and publish the post, I see for all images have link. How can remove it
0
votes
1answer
307 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? ...
-1
votes
0answers
14 views

Custom Featured Image / Thumbnails [closed]

my Problem is i create two custom Featured Image. it shows in the page i cant add it to an anchor tag. the_post_thumbnail code is for the original Featured image only right ? how can i get the custom ...
1
vote
1answer
214 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
25 views

Featured Image of the post are gone after site move to another server

I have moved my wordpress site from Amazon AWS to bluehost with same domain. Setup and Map domain to bluehost. Install wordpress Copy plugin, uploads, and themes folder to new server Dump db and ...
0
votes
1answer
9 views

How can I assign bloginfo path or thumbnail path to a variable and call it in markup?

In my head this sound right. I check if the post has a thumbnail. If it has, I assign the post thumbnail to a variable that I call as the source for my background image. If the post does not have a ...
2
votes
1answer
435 views

Function to auto-set a featured image that is already in use

I don't even know where to start with figuring this out.... This function for functions.php grabs the first attached image in a post and sets it as the featured image. The problem is that it will not ...
0
votes
1answer
44 views

Add Featured Image from Existing wp-content folder

I am using a Tube plugin that is creating my posts and pulling in thumbnail images that it is using on the main page to link to the posts. While it is creating and displaying thumbnails these are NOT ...
0
votes
1answer
53 views

Thumbnail With Next/Prev Links Not Showing Next Post?

I am using the below code to display thumbnail with next/prev posts links on single.php page. It is working fine when next and prev post are from same category but not showing the next or prev post ...
1
vote
1answer
1k 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
2answers
375 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
899 views

Getting featured image of particular size.

For my site I use WordPress 3.6, and a wp-bootstrap theme that is built on bones framework. When I set a featured image for a particular post, I see that the image is automatically saved at 6 ...
-1
votes
2answers
157 views

Display Featured Image

I am having some issues trying to get featured image to appear on my front page. I am using Genesis, then genesis child theme. I only want the featured image to appear on my front-page.php. I know I ...
-1
votes
1answer
1k views

Responsive scaling of image for the_post_thumbnail() [closed]

In my functions.php file, I have: add_theme_support( 'post-thumbnails' ); add_image_size( 'kev-feature', 650, 342, true ); In a template file, I have: <div ...
0
votes
1answer
30 views

Change theme's thumbnail to cropped WP featured image

The theme I'm using, when browsing a particular category, displays the full featured image (even if it's more than 1000px high), resized to max-width:20%. However, I'd like it to display just a ...
0
votes
1answer
451 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 ...
1
vote
1answer
491 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 ...
0
votes
1answer
348 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 ...
1
vote
1answer
29 views

Set the background to a default image if there isn't a specified “featured image”

I am having a little trouble displaying a default image as a background image when a feature image is not present. This is the code I am using <?php if (has_post_thumbnail( $post->ID ) ): ...
1
vote
1answer
49 views

ReOrder Post Within Categories plugin with featured image

I need to add featured image somewhere near title so I can easier sort them, currently the plugin use this code to show the title only, tried with the_post_thumbnail and nothing is showing up. Thank ...
0
votes
0answers
34 views

Lazy Load sometimes don't work

recently I implented lazy load script into my wordpress blog through query posts. Well it is working, but sometimes javascript will not just work. Actually I have these images in sidebar aka images ...
0
votes
2answers
584 views

Display the first image from a post in RSS feed

I have seen another question located here, but it's not useful for my case; it's not working. Also, "RSS Feed Image" plugin is not working as desired. I want to display the first image of the post in ...
0
votes
1answer
45 views

Autoblog posts in wpms(network) into main site including featured images

I've a scenario like this: Blog writers, write their content into their blog and whichever post that they'd like to be seen in the main site should include the category 'Featured' (they're ...
0
votes
1answer
43 views

custom thumbnail image size not working

I added below code in theme's function.php add_theme_support( 'post-thumbnails' ); add_image_size( 'thumb-small', 200, 150, true ); and <?php the_post_thumbnail('thumb-small'); ?> ...