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

featured image rss feed in a category

I want to get the featured image in my RSS feed in a specific category. With the principal rss feed mywebsite.com/feed , I have no problem. Featured images are displaying. When I want to create a rss ...
0
votes
0answers
9 views

How to fix the format of entry pages with thumbnail images?

I am trying to make the entry posts with a thumbnail image to the left, and title above the excerpt of the article to the right of the thumbnail, but aligned with it. Currently, the thumbnail is below ...
0
votes
1answer
19 views

Post body text occupying featured image space before it loads

I am wondering if there is a way to prevent my posts body text to occupy my featured images space before it gets loaded. When I go to some post the post content is right bellow my post title until ...
1
vote
2answers
26 views

Change size and crop medium_large images

I use events manager pro plugin to show an eventslist. These event-list is showing their thumbnail image in the new (wordpress 4.4) wordpress image size "medium_large" (width 768px). I need an image ...
1
vote
0answers
14 views

How to update the values when the featured image has changed?

I'm trying to implement this function. It saves in the database the dominant color of the image uploaded as featured image in a post. It's working perfectly BUT the problem is that it only works when ...
1
vote
1answer
18 views

Add colorpicker to featured image

I'm trying to add a colorpicker to the featured image meta-box. Here is some background: I use the featured image meta-box to place parallax background images. Because a user is allowed to place text ...
3
votes
1answer
33 views

Add options to featured image

I want to add an option to the featured image metabox. I have found a way to do this here The problem I'm having is saving the value tot the database. Here is what I have tried: add_filter( ...
0
votes
0answers
21 views

Using custom image resizing script in a page

I am using the aqua-resizer to create custom image sizes and cropping. However, I am also using a theme with a built-in page editor and module-based layout. I am able to get the aqua-resizer script ...
-2
votes
0answers
10 views

Pin It button doesn't bring up featured image

I've been using the pinterest hover plugin and it worked fine until recently. The problem I am having now is that when I click the pin it button at the bottom of my pages (not posts!) it doesn't bring ...
0
votes
0answers
13 views

Feature image cropping issue

When I am uploading any image to set as background on my homepage it gets cropped automatically. I am using attitude theme for the site. What settings shall I change to have the complete image as it ...
1
vote
0answers
17 views

automatically set “Featured Image” the same as the og:i that is set in a custom field

I currently have a site that uses the "custom fields" feature to set the value of the meta property="og:image" for each post. All of my og:images are stored on an external server. I'm looking for a ...
0
votes
1answer
34 views

Fit image to Thumbnail canvas size

I need to upload images with differrent orientation (portrait and landscape) and I don't want to crop post-thumbnails. But I need always thumbnail size 250x250px. If I upload portrait oriented image ...
1
vote
0answers
12 views

Fixing image names for a site being restored

Fixing image names for a site being restored The WordPress site went down last week and is being restored. When a image(image1.jpg) was uploaded a week ago using the back-end of WP, it likely was ...
0
votes
0answers
25 views

Compression of original picture during upload?

WordPress compress scaled thumbnails of image during upload, but, original image will be is same quality. I am trying to compress original image too. I wish to make image in original resolution ...
1
vote
1answer
16 views

Get post thumbnail from subpages with a foreach loop

I have created a page that loads content from it's subpages. The subpages contain post_thubnails. I use a foreach-loop to get the content of all pages. I just can't get the images loaded. <?php ...
0
votes
2answers
25 views

Retrieving featured image on static blog posts page

So I've set up my site to use static pages for the front page and the posts page. Now I'm creating my posts page template. I wanted to grab some content from the actual page I made for the posts page ...
0
votes
1answer
6 views

wp_get_attachment_metadata()['image_meta'] fetch WP metadata or EXIF?

wp_get_attachment_metadata( get_post_thumbnail_id( get_the_ID() ) )['image_meta']['credit'] returns nothing although there IS information in the attachment's credit field. Is ...
2
votes
1answer
31 views

Get original image from thumbnail URL

I am using a method to find the first image included in a post's content to display as it's thumbnail (a little hacky, but it works). However, some authors add small sized images, and since this ...
0
votes
0answers
9 views

if the image is smaller than the thumbnail, create anyway the thumbnail [duplicate]

I noticed that wordpress does not allow generating thumbnails if thumbnail size exceeds the size of the original image. Is there any way to prevent this? Bfi_thumbs plugin generates the thumbnail ...
0
votes
1answer
39 views

Use thumbnail image using url of that image

I have the URL of my image and I want to display the thumbnail of that image. Is this possible. I check the_post_thumbnail() function but I can't add the URL of the image as an input.
3
votes
1answer
164 views

The the_post_thumbnail without srcset?

The WordPress 4.4 adds multiple image sizes with srcset when using the_post_thumbnail function. Is it possible to get only one image size without srcset ? I understand that it is possible to add a ...
1
vote
2answers
46 views

How to access featured image?

I saw this code as how to set a featured image for a post: // required libraries for media_sideload_image require_once(ABSPATH . 'wp-admin/includes/file.php'); require_once(ABSPATH . ...
0
votes
2answers
28 views

Wrap post thumbnail with <figure>

I'd like to wrap my post thumbnail with <figure> tags. I have tried the following and the image appears, but the <figure> tags come up empty. <?php if ( has_post_thumbnail() ) { ...
2
votes
1answer
88 views

Featured image shortcode

Each post currently requires the featured image to be duplicated within the post several times. Is there any way in which I could dynamically call the featured image back into the post rather than ...
0
votes
1answer
29 views

Insert Featured image from Feed

I am importing products through a feed programmatically as follows: $request = wp_remote_get('myapiurl'); $response = wp_remote_retrieve_body( $request ); // decode the json $json = ...
0
votes
0answers
17 views

White Blank screen and issue to get thumbnail in

<section id="container" class="one-column"> <div id="content" role="main"> <div class="gridBox"> <div class="boxes-container"> ...
0
votes
2answers
23 views

Icon over thumbnail according to post format

How would I go about adding icons over post thumbnails according to their post format. So for example if I have a post with a post format of audio the thumbnail would show everywhere(widgets, category ...
1
vote
1answer
31 views

How to generate a featured image from a video embeded in a metabox

I have a metabox that allows me to add videos from Youtube and Vimeo on posts with video post format. I am now looking into automatically generate thumbnails for these post with video post format. ...
0
votes
1answer
86 views

add_image_size not working with the_post_thumbnail

Code in my funcitons.php function custom_thumbs() { add_image_size( 'cover-size', 1600, 450, true ); } add_action( 'after_setup_theme', 'custom_thumbs' ); Usage: echo ...
1
vote
1answer
24 views

What is the standard featured image size?

Is there a standard featured image size that Wordpress works best with? Or is the featured image sizing based on theme settings or requirements?
-1
votes
1answer
68 views

Featured image as background in a div using headway

I'm using Headway Theme (builder) and I've got static pages for products. On top of page is a wrapper that I'd like to use the featured image as background. Everything I've read is that I need to ...
0
votes
1answer
28 views

Disable loading Thumbnail On Mobile [closed]

I am looking for a script or plugin that disable loading thumb in mobile browser but load thumb on desktop browser. Clearly, in a wordpress website, if I visit a website in desktop browser then ...
0
votes
2answers
40 views

WordPress 4.4 <picture> responsive sometimes doesn't work

When WordPress 4.4 was released, it added the ability to make your feature images responsive using the picturefill JavaScript libraries. Is anyone else having problems with the <picture> tag? ...
2
votes
1answer
39 views

Cannot get full thumbnail size using the_post_thumbnail

I cannot get the full (unmodified) image size using the_post_thumbnail( 'full' ); I have also tried: the_post_thumbnail(); It still returns the cropped image. I can see that the unmodified ...
1
vote
1answer
25 views

How do I get a random image from subset of images in media gallery?

If a custom post does not have a featured image, I would like to grab an image from the media library to use in place of the featured image. These particular images wouldn't be attached to any ...
1
vote
1answer
56 views

How to use wp_get_attachment_metadata for thumbnails

I would like to add the right rich text snippets so that the Goole Structured Data validator will pass all the code I have. The only things missing are the sizes of the thumbnails. This specific ...
0
votes
1answer
21 views

How to get the real thumbnail size?

I am trying to find the real thumbnail size of the posts. In my blog in the past years I was uploading images (and thumbnails) of 600px width. At the beginning they were even smaller. In the last ...
0
votes
0answers
13 views

Multiple Images from a Featured Image (ie, additional product photos)

I need help coming up with a solution or even deciding if it is possible. I would like to provide multiple images (closeups) of a featured image (large one) as detail photos... without having to ...
0
votes
0answers
14 views

Add woocommerce category thumbnail to the other taxonomies

Woocommerce by default includes category images, shown in the left column of the below image: I have added my own custom taxonomies and I'd like to extend this functionality to them. At present ...
1
vote
2answers
42 views

Set Post Image Using Shortcode

How can I set a post's featured image using the content of a shortcode? For instance, the following shortcode should set the post's featured image to the image at www.google.de/nicepic.jpg: ...
0
votes
1answer
22 views

Display a thumbnail outside of the loop for a page

Is it correct that to dispaly a post thumbnail image outide of the loop you need to associate the post ID from the page? Like this: echo get_the_post_thumbnail($post->ID);
1
vote
1answer
32 views

Delete all post meta except featured image

My aim is to clear up my database entries. I did a migration from blogger which added many useless post_meta. I found a plugin (db reset) that has the option to reset/delete all post meta. However if ...
-2
votes
1answer
30 views

How to stop WordPress from creating native thumbnails?

Stop use thumbnail native image - one major issue, I want Use cache image thumbnail inserted of native image, its create junk on web-space e.g If I upload one product its make 3-6 thumbnail image ...
0
votes
1answer
37 views

insert thumbnail image from php script

I'm trying to insert a post image thumbnail from my php scritp. It's inserting the post, the content, a download link, and I only need to set the thumbnail image to finish my script. This is my code ...
0
votes
0answers
16 views

Mobile view: big image sizes, when using infinite scroll and loading next posts

My website is set up with a simple blog (http://goo.gl/5nJZOz) and the plugin "Infinite Scroll". The site works responsive: When I change the size of my browser to 799 pixels wide or lesser, the ...
0
votes
2answers
28 views

Lazy loading thumbnails

My goal is to lazy load thumbnails. As seen in here, I need to add class="lazy", placeholder has to be in src and lazy loaded image as data-original. This code works perfectly: if ( ...
0
votes
0answers
9 views

Custom Theme with Included Infinite Scroll Won't Load Post Thumbnails

I'm open to any constructive feedback, here. I have a custom theme that we've included infinite scroll in but I noticed today that, when loading category posts, once the additional posts are ...
0
votes
1answer
20 views

How to blur the_post_thumbnail() via blur.js (jquery)?

I want to use blur.js (blurjs.com) to blur the post thumbnail. But it seems that the .js can't grab the image out of the_post_thumbnail(). If I follow the instructions from the website and build my ...
0
votes
1answer
28 views

Display child categories in WooCommerce

This code displays the category thumbnail and title of the two parent categories for WooCommerce product categories. I have several child categories I'd like to display as well. Is there way way to ...
0
votes
0answers
26 views

Thickbox Opening IFrame instead of Featured Image

I am trying to open the featured image on the single post page in a WP Thickbox but it's opening the entire post in an IFrame. Here is my code: <?php if ( has_post_thumbnail()) : ?> ...