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

Thumbnails produce unwanted gray pixels on white background

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

Issue on Getting Custom post type Thumbnail's URL

I need to get the URL for Custom post type Thumbnail and assign it to the_post_thumbnail('', array('class' => 'group1 img-responsive', 'href' ...
0
votes
1answer
32 views

How To Pick Custom Size Of Uploaded Image In Theme Via the_post_thumbnail();?

I am designing a magazine style theme and I want different image sizes as to show on index.php page. Now for this, I am using <?php the_post_thumbnail( array(100, 100) );?> but it is picking ...
0
votes
1answer
20 views

Add theme support for post thumbnails

I created a custom post type called products without support for thumbnails because I want to add the support for post-thumbnails in functions.php file. So I use after_setup_theme action hook and use ...
0
votes
1answer
21 views

Post thumbnail won't resize to fit

Below is the code i used to set my thumbnail sizes. The Only problem I'm having is that my thumbnails won't resize to fit the size below or the <div> add_theme_support( 'post-thumbnails' ); ...
0
votes
1answer
31 views

How To Pick “full/thumbnail” Image In A WordPress Loop?

I am picking WordPress latest post through WordPress post loop for that I am using the below code but in this its picking all images at full size. <?php if ( have_posts() ) : ?> <?php while ...
-3
votes
0answers
27 views

Related Posts without plugin

I need to my folder single.php insert code related post I tried but problem that does not appear div where the path for the images. Or the exact steps? Thank you
0
votes
0answers
17 views

How to correctly add the featured immage (thumbnails) support in a WP theme? Why I can't add a featured immage?

I have developed this custom WP theme: http://www.asper-eritrea.com/ As you can see into the post excertpt (in the home page) it is showed the first immage into my posts. To do it I use this code: ...
0
votes
1answer
30 views

Product Images Low Quality After Updating From WP 3.5 to 4 [closed]

I recently updated my WP website from WP 3.5 to recent version 4 and now I am getting a lower quality of all product feature images. I am using woocommercee to generate an online shop and it was ...
0
votes
0answers
16 views

Get default post thumbnail from custom field

This is default post thumbnail code add_filter( 'post_thumbnail_html', 'my_post_thumbnail_html' ); function my_post_thumbnail_html( $html ) { if ( empty( $html ) ) $html = '<img src="' . ...
0
votes
0answers
14 views

Featured Image saving before updating post

Tell it's not just me; I'm almost sure it isn't, but I couldn't find anyone else talking about it. I disabled any plugins to confirm this. When editing a published post, adding or removing the ...
0
votes
2answers
59 views

Theme stops media uploader from working

I took over a website from a previous developer that built most of the site. Because the theme was a custom one, he chose to do it using Toolbox. The site has been standing for just over a year, and ...
0
votes
0answers
22 views

Setting image attachment caption, description, and alt text programatically

In an attachment post, which post fields correspond to the attachment's caption, description, and alternative text. I cannot find any documentation on this relationship, and I am trying to get ...
3
votes
1answer
110 views

In loop: posts have thumbnail AND other variables

I am looking to display posts that meet certain requirements. First and foremost, the idea is to show visitors the most viewed posts. I implemented that with some help. So, I got that working with the ...
0
votes
1answer
19 views

the_post_thumbnail() doesn't always return selected size

In my theme's archive template, I'm using the_post_thumbnail('list-thumb-small'); to get a specific thumbnail size for each post. But that doen's work on all posts. Some posts display their ...
0
votes
0answers
15 views

Sharing a photo post on facebook sometimes results in a grey thumbnail

On my facebook page some of the thumbnails are partially or completely greyed out: https://www.facebook.com/ohokphotos My first suspicion is that this occurs when facebook fails to completely load ...
0
votes
2answers
24 views

upload image only

I create post page from front end , and i add code for uplaod feature image. I use this code if (!function_exists('wp_generate_attachment_metadata')){ require_once(ABSPATH . ...
0
votes
2answers
34 views

Trouble Retrieving Thumbnail URL on Front-Page

I'm running multiple queries on a front-page.php file. They all seem to be working fine, except that I am having a hard time getting a thumbnail image. The code in question, on my front-page, ...
0
votes
4answers
42 views

Post thumbnail height problem

I am trying to create a square thumbnail with auto crop with size of 300px 300px. I only get the width of 300px but the height is auto, i think is not cropping. I tried this: add_image_size( ...
3
votes
1answer
53 views

Prevent WordPress from cropping GIF files

Is there any way to prevent WordPress from cropping files based on their file extension. Actually, I want to disable cropping for GIF files because after cropping GIF image... GiF image does not ...
0
votes
0answers
28 views

4.0 Media Uploader Customisation

Does anyone have/know of any guides or tutorials that break apart the different hooks and sections of new improved the media uploader? Specifically, I'm looking to add a new tab to between the ...
0
votes
1answer
27 views

How do I get thumbnails?

Today I set up my Wordpress blog I used the hueman theme I looked at my posts page And there were blank images with cameras in the middle of them So I guess there thumbnails How do I get them?
-1
votes
0answers
5 views

how to get attachments show with post title

look at this site http://www.jvpnews.com/srilanka/82163.html i need to dolike this look at down the image i marked with circle of attachements image/video with post title i m using wordpress how ...
0
votes
1answer
25 views

How to set uploaded image as featured image wordpress

How do I set an uploaded image from form to be the featured image of the post. Here are the basics of my code: User fills form and uploads image. Submitted form data appears as a custom post type. ...
0
votes
1answer
26 views

Generate responsive post thumbnails of same size

I am using a function to display related posts in my wordpress theme with their thumbnail. I am using uikit to make my theme responsive. Uikit offers a grid feature similar to the bootstrap one, and ...
0
votes
1answer
37 views

Removing URL and adding container around image in the featured image metabox

I want to remove the url and add a container(div) around the image in the featured image metabox. Wordpress output <p class="hide-if-no-js"> <a title="Set featured image" href="URL" ...
0
votes
1answer
38 views

Resize Admin Featured Image Thumbnail in CPT Edit Screen

I have a custom post type for a slider and I'm using the Featured Image thumbnail uploader to set the image. I've relocated the Featured Image meta box to be underneath the title section in the ...
0
votes
1answer
23 views

Upload image from a URL and assign it as a Featured Image to a Custom Post Type?

I am 90% done building a plugin that uses the Amazon.com API. What I have built is a Books Custom Post Type. My Books CPT has Custom Taxonomies for Book Category, Book Tags, Book Author, and Book ...
0
votes
1answer
24 views

Copy wp_postmeta from one database to another

I had a site setup on old-domain.com, which used the database old_db. Recently, we had to migrate our website to a new server and domain, new-domain.com which uses the database new_db. I installed a ...
0
votes
1answer
27 views

How to Make Thumbnail of Post Stay Animated

When I upload my post with an animated .gif, the thumbnail generates into a new image and doesn't stay animated. It will stay animated inside the post which is great. It seems to resize the .gif image ...
0
votes
1answer
49 views

adding image to post thumbnail from another server

i have a image gallery site, each post in site have thumbnail and image in post, now i want get file server for uploaded image. how can i add thumb image from another server? or how can i change the ...
0
votes
1answer
62 views

Backstretch.js and thumbnail sizes to reduce loading time

I am using backstretch.js to set a featured image as a full size background image (as per this tutorial). I would like to combine this approach with different thumbnail sizes in order to reduce ...
1
vote
1answer
50 views

Can't show custom post thumbnail sizes as background images

I'm trying to work out a solution for responsive background images in Wordpress to use on my clients' sites. This is what I got: 1) I created some custom thumbnail sizes: function ...
1
vote
1answer
55 views

Confused with the loop and repeating things

In my HTML mock up, the idea is to have a thumbnail side by side and I'm doing that by using this code: <div class="jumbotron"> <img src="<?php print IMAGES; ?>/th1.png" ...
1
vote
1answer
72 views

How do I remove featured images and captions from a wordpress RSS feed?

I'm trying to remove featured images and captions from my feed and struggling to do it. As another question has identified it is very difficult to format captions and so as a newsletter feed I want to ...
0
votes
1answer
35 views

query to update post with featured images from array

I have 100 existing posts of a custom post type that I need to update their featured images... How would I go about creating a query to randomly update these images from an array of say 20 images from ...
0
votes
1answer
39 views

How can I retrieve a Featured Image thumbnail using only the Post_title?

Is it possible to get the Wordpress featured image of a post using only the post_title name? I know it can be done with post->ID but I only have the post_title name to work with and this is outside of ...
0
votes
0answers
18 views

The images in the post arent Visible after publishing them?

I write a post in new post editor and then add media. I can see the images in the editor but when i publish them they aren't loading up and a frame with little square in the middle comes up. This is ...
0
votes
1answer
79 views

Disable post thumbnails in Twenty Thirteen child theme

I've made a theme that's a child of the standard Twenty Thirteen theme. Twenty Thirteen displays post_thumbnail images at the top of each of my pages, and I'd like my theme to not do this. I could ...
0
votes
2answers
47 views

How to output placeholder image if no featured image set?

I am using the Multipostthumbnails plugin - https://wordpress.org/plugins/multiple-post-thumbnails/ And it has a certain naming convention to it. I know the usual way to output a placeholder if no ...
0
votes
1answer
25 views

Single Featured Image Repeating

I am attempting to create a listing of Blog Posts by Date(Month) and show the featured image for each. <div id="datePostTime"><h2>Posts for <?php echo get_the_date('F, ...
0
votes
0answers
13 views

Require featured image snippet not letting me Trash the post

There's a famous snippet which allows you to require a featured image on your post before it gets published, which is following: add_action('save_post', 'wpds_check_thumbnail'); ...
0
votes
1answer
74 views

get_the_post_thumbnail not working inside wp_get_nav_menu_items hook

if ( ! is_admin() ) { add_filter( 'wp_get_nav_menu_items', 'display_last_posts_for_menu_item_ts', 10, 3 ); } function display_last_posts_for_menu_item_ts( $items, $menu, $args ) { $menu_order = ...
0
votes
0answers
10 views

How do I set a featured image straight from the post text editor?

I'm dealing with a migration of 5,000 posts from a non-WordPress platform into a new WP install. I would like content managers to be able to open each past post in the admin, then merely click an ...
0
votes
0answers
14 views

Limiting where feature images are used

I would like to switch to a magazine theme that uses featured images, but I would like to limit where they are used. For the post page, I want to use a different lead image or the feature image but ...
1
vote
1answer
206 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
0answers
23 views

Is it possible to add a custom tab to the Featured Image Modal and if so how?

I tried using the media_upload_tabs filter but that didn't work. This question looks very similar to this Adding A Custom Tab To The Insert Media / Add Featured Image Modal but there that wasn't ...
0
votes
0answers
104 views

Set Featured Image not opening - Stuck at loading

I am unable to set featured image for posts/pages. The 'set featured image window' opens but never loads and thumbnails. Then I tried to upload the image using Media, it stucks at crunching. But ...
0
votes
2answers
87 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 ...
0
votes
2answers
319 views

Get a post's thumbnail url or display default image in shortcode

I'm trying to get my code to: Get a post's thumbnail url or (if no thumbnail there) to Echo a default url I'm not sure if I am going the easiest way or right way about this. This is the code so ...