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
50 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
72 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
85 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 ...
0
votes
1answer
45 views

Delete post media except featured image

I'm working on site where post except 'featured image' has also other images. Under certain circumstances I need to delete all images except 'featured image'. Which one the most convenient way to do ...
0
votes
1answer
93 views

Featured Image URL is Showing but not thumbnail

I added posts from other CMS to my new word press site. For featured images I changed, wp_post table as post ID: 2300 Attachment in "wp_post": ID:3400 post_type: attachment post_mime_type: ...
0
votes
1answer
195 views

How to get cropped thumbnail source for custom post type

I need thumbnail image url with size 148*148px. I using custom post type for testimonials. I need just the image source like http://example.com/demoimage.jpg. It is possible to get cropped image ...
0
votes
1answer
117 views

Featured Image not showing on wordpress hosted under Amazon AWS

I created a wordpress website on Amazon AWS. I also installed the same theme on wordpress hosted under Bluehost. The problem with wordpress hosted under amazon is that it doesn't show the featured ...
0
votes
1answer
63 views

Overwriting a Shortcode

I have a theme that extends the Visual Composer plugin with a slider on the front page. The slider will show five testimonials from five different customers. I want to add the featured image of each ...
0
votes
1answer
148 views

Combining Post Thumbnails With Nivo Slider

I am wanting to use the post thumbnail with the nivo slider and for it to generate the image from a custom image size (already declared in my functions file) I wrote this (for generating the images) ...
0
votes
1answer
63 views

featured post as div background

Ok I didn't find an answer yet.. because my code is different.. I want to set the featured image as the div's background but I don't know how to do that.. html, php and css collide in one line.. This ...
0
votes
1answer
221 views

Wordpress get_categories & listing recent post thumbnail

I'm trying to get a page to list all the child categories and then display their name and a thumbnail from the most recent post in that category. This is the following code I've got, it appears to be ...
0
votes
1answer
115 views

featured image box missing

The 'set featured image' box is not showing up at my 'Posts' and 'Pages' edit page. There is also no checkbox in my screenoptions. I have add_theme_support( 'post-thumbnails' ); in my functions.php ...
0
votes
1answer
64 views

Size article thumbnails and retrieve them directly from database

I've integrated the Wordpress database directly with my .NET application. What I want is to set the featured image of a post. This featured image must be maximum 800pixels wide, and automatically ...
0
votes
1answer
94 views

Black and White Thumbnail in WordPress Gallery

I want to have black and white thumbnail on page, and i want to show image in colour when mouse is on and when big image is shown (in lightbox) I have this -> ...
0
votes
1answer
116 views

Change get_post_thumb responsively?

How can I responsively change the get_post_thumb when reaching a certain breakpoint with PHP code? I use the following code to print my posts thumb at the moment: <?php echo '<div ...
0
votes
1answer
55 views

Make thumbnail from uploaded image without plugin

When I add image in post, I need to make some thumbnails with several sizes. Maybe someone could tell action or filter to implement this?
0
votes
1answer
145 views

Only create image size when used in featured image

I'm using a post thumbnail size and I was wondering if there is a way to setup so wordpress only make the thumbnail size when the image I upload is used as the featured image rather than for every ...
0
votes
1answer
123 views

How to have featured image show in standard RSS Widget

Is there a way of showing featured images in the standard RSS Widget in WordPress?
0
votes
1answer
36 views

How to enable admins/editors to set a featured image for specific category?

Well , I know how to set up a featured image for a post . But I want to set up a featured image for categories . So admins/editors can choose a featured image ,like they do for posts . And one ...
0
votes
1answer
25 views

Link from Thumbnail to Post not working

i am trying to link my posts thumbnail to the post that it is pulling, however its not coming through as a link :S <?php $carouselPosts = new WP_Query(); ...
0
votes
1answer
77 views

Featured Image / Post Thumbnail Cropping Query

I am building a site which can be viewed here: http://inspiredworx-labs.com/sites/garyarnold/ As you will see on the homepage, I have a grid, the site is responsive so am using % over px for widths. ...
0
votes
1answer
65 views

Always generate thumbnail after sideloading image

I'm sideloading an image into wordpress from youtube. it works fine and the key part of the code is: // sideload it into wordpress (generates various sizes) $thumbid = media_handle_sideload( ...
0
votes
1answer
312 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
124 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" ...
0
votes
1answer
271 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
1answer
78 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
731 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 ...
0
votes
1answer
64 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
48 views

Retrieve post thumbnails

I am trying to build a wordpress blog from scratch. I am looking to retrieve all the articles from a specific category. I then want to also include the SQUARE thumbnail(not a stretched version, a ...
0
votes
1answer
38 views

Hide feature image when is not populated

I have a customized a comercial theme with featured images capabilities. When I have a post with featured image everything is ok, but when the post hasn't a featured image the template charge an empty ...
0
votes
1answer
56 views

Thumbnails not showing in blog

I am trying to add thumbnails to a wordpress blog (that was created by someone else). As a newcomer to Wordpress I understand I need to add "the_post_thumbnail();" inside "the loop" but looking at the ...
0
votes
1answer
160 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
400 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
351 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
120 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
102 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
216 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 ...
0
votes
1answer
195 views

Latest news mini images

I tried to find an answer on websites and other forums, but found nothing. I will try to explain my problem. I need to change my WordPress website so that it displays a small image for all news ...
0
votes
1answer
199 views

How to import linked images and make them featured -> automagically

I am using FeedWordPress to syndicate articles from RSS feeds. The plugin does a beautiful job of bringing in the content, preserving original formatting, and assigning metadata to the right places. ...
0
votes
1answer
65 views

To CSS Style on the image uploaded on a Post under Content Section

I have uploaded a media picture to a post the HTML I saw as such <a href="http://localhost/self/wp-content/uploads/2013/03/pic1.png"><img ...
0
votes
1answer
139 views

Custom image sizes are not used

I recently launched a new theme and regenerated all the thumbnails with AJAX Rebuild. All of these custom image sizes are defined in my functions.php as well as the individual template files in which ...
0
votes
1answer
73 views

I would like my posts to pull my custom cropped thumbnail instead of creating its own thumbnail from Featured Image

Firstly, I'm not a developer, mostly a website designer and CSS hacker. I'll try to explain better: I'm using a grid theme that creates a thumbnail out of the featured image to display as a post ...
0
votes
1answer
74 views

Pages with a loop (index, archive) are loading the first image as post_thumbnail

Using post thumbnails for custom header images -- works fine on straight pages. But custom templates that load a loop (including index) are pulling the first image instead of using the one set in the ...
0
votes
1answer
107 views

Insert link to my thumbnail images

I am try to insert link to my thumbnail images, the link is hyperlink with post. When i put this code inside the loop then instead of showing the first image, first show the second image ...
0
votes
1answer
452 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 ...
0
votes
1answer
144 views

Retrieve post thumbnail as array

How can I retrieve the post thumbnail (featured image) as an array? Using get_post_thumbnail() I noticed in the WP documentation that there is a third parameter from, which I understand, one would be ...
0
votes
1answer
204 views

featured image problem with custom post type

I created a new custom post type based on the code provided by the wordpress codex. But when I try to set a featured image it returns and shows -1 in the featured image box instead of the images. I ...
0
votes
1answer
181 views

is it possible to force wordpress to always save thumbnails as 'jpg' not 'png'

I cant see any settings and cant see much in the php api docs regarding this? for instance if the original file upload is a png wordpress converts to jpg
0
votes
1answer
607 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 ...
0
votes
1answer
84 views

add_filter with specific thumb names

How would I run add_filter only on some specific registered thumbnail sizes '$size' ? like 'large' , 'medium', etc?