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

Find posts without featured image? [duplicate]

I need way to find post(s) without featured image set. I use WP as gallery site and for every post I set featured image. I wish to check if there is any post(s) without featured image. Any code to ...
0
votes
2answers
31 views

News and Featured image

I am trying to list my news items in 3 columns in a vertical design: image, date, title. I'm having some trouble calling the featured image. Is there a specific function that would help me with this? ...
-2
votes
0answers
18 views

how do I display individual posts in the featured area

Hi I am new to theme development and am building a wordpress featured area that looks kinda like the verge/ polygon etc... The problem is that individual posts have different colour blocks and their ...
0
votes
1answer
30 views

Get featured image on hover of post title [closed]

I need to get respective featured image on hovering of post title is there any plugin to achieve this I tried geting this by using Js and CSS but failed to achieve.Searched through Googe and WSE too ...
0
votes
0answers
14 views

Does not show thumbnail in a given category

I am creating a loop with two formats for posting , one is the default post and the other is a video post using the post-format (video) . I found right here a function to capture and save thumbnail ...
0
votes
0answers
9 views

Featured image for a third party application

I'm building a Phonegap application that retrieves posts from an existing WordPress database. In which way featured image (i guess it's in wp_postmeta) is related to the post id and how is it ...
0
votes
1answer
25 views

How do you import images from a URL in your post?

I am looking to automatically set the featured image from a URL, I have a plugin that creates new posts and has a link back to the source website, I would like to be able to scrape that link for an ...
0
votes
0answers
18 views

Fluid width of thumbnails in 4 column grid

I'm trying to figure out how to make the featured images width fluid. I've got a 100% width container with 4 25% columns. The thumbnails will be presented in a div (.griditem). This is what i'm ...
0
votes
2answers
54 views

How do I use featured images on index.php?

In 'Reading Settings' I have chosen the static-page drop-down menu of a page I created to be the post page. I've put the html, php, and css from my page.php in index.php to style it. I'm unable to ...
0
votes
0answers
20 views

How to regenerate thumbnails when set featured image?

How to regenerate thumbnails like the follow screenshots?
0
votes
2answers
32 views

Wordpress generated thumbnails

I uploaded one image with size of 1920*1200 and I checked the backend Media options as followed Thumbnail size 150 150 Medium size 300 300 Large size 1024 1024 The upload directory was supposedly ...
1
vote
1answer
35 views

Overwriting Parent Theme's Image Sizes

I'm using Raw by UDTHEMES as a parent theme for a site I am working on. In the parent theme, there is the following image size: add_image_size( 'udt-full-width-image', 870, 490, true ); And I am ...
0
votes
0answers
16 views

Featured image on pages AND blog index. How to combine?

I want to display a featured image on all pages and on the blog index. I have two functions but I don't know how to combine them. Display on all pages: if ( $thumbnail_id = ...
0
votes
0answers
8 views

How to Make Echo Random Image [migrated]

I am looking to have posts echo a random image from, say, a selection of 3 images. I want it to echo img1 or img2 or img3. Here is what I have thus far: echo '<img ...
0
votes
0answers
19 views

Set featured image using wp_insert_post

// Auto post ( Unique File Date ). $postData = array( 'post_category' => array( $Category ), 'post_status' => $Post_Status, ...
0
votes
1answer
35 views

How to replace URL protocol using PHP?

I'm using HTTPS everywhere in my website but I have problems with sharing buttons for Pinterest and Tumblr. For example, when I try to share image on Pinterest I get this error: "Sorry we could not ...
0
votes
1answer
52 views

If no featured image is set, default.png from core is shown

I'm encountering a weird issue when getting featured image urls with wp_get_attachment_image_src. If no featured image has been set, this should return null. However, in this case its returning ...
0
votes
0answers
16 views

Recent posts show thumbnail

I'm learning wordpress theme development and using Underscores as my starter theme. How can I show either a small thumbnail of a image or featured image, from each post In my recent posts custom ...
3
votes
3answers
110 views

Can WordPress crop only the post thumbnails?

I'm using the post thumbnails feature of WordPress and I have several sizes defined in functions.php. Everything's fine, it works great with Crop Thumbnail to crop them perfectly. I have a question ...
0
votes
1answer
45 views

Featured image not showing on page

I am new to creating a theme and wonder if anyone can help? I am trying to display all the featured images from posts under a specific category (id=5) on my index page and it's not working using the ...
0
votes
0answers
126 views

Previous and next posts with images on attachment page (image.php)?

Show two previous, current and two next posts with post featured images and links to previous and next post on attachment (image.php) page? I have image gallery site and that kind of navigation is ...
0
votes
0answers
73 views

Can't generate thumbnail images

Having a very strange problem with this site I recently took over hosted on RackSpace. Seems whenever i upload a new image, it doesn't generate different sizes and I'm trying to get it where it will ...
0
votes
0answers
51 views

Set Featured Image from URL using Javascript (or jQuery)

Like the title says, I'm needing to set the featured image of a custom post using javascript (or jQuery) using an image hosted externally. Basically, I have a script that searches a separate database ...
0
votes
2answers
45 views

Setting featured image based on related post

I am using a plugin called The Events Calendar. I don't always set the featured image for each individual event. Each event has an organizer ID (tribe_get_organizer_id). I want to add a filter that ...
0
votes
2answers
58 views

has_post_thumbnail() Returns False on Scheduled Posts

I am making some changes to a custom WP template and have hit an odd issue. Published posts work absolutely fine, but when you view a scheduled post the Featured Image disappears. It's as if there ...
1
vote
1answer
105 views

Retrieve featured image (thumbnail) url from multiple posts with one query

I have a list of post ids and need to get all the standard data plus the thumbnail of the posts. As there will be several hundred posts i need an efficient way to retrieve the data, just looping over ...
0
votes
1answer
62 views

How to set YouTube video as featured image?

I am trying to have all my posts with post_format set as video, have said video as the featured image. Here is what I am working with thus far but I need some help: if($post_format == 'video') { ...
1
vote
5answers
258 views

Display height and width properties with the_post_thumbnail() or related function

Problem I want the height and width properties in the img element of the Featured Image for a post, page, or custom post type. Environment I have a custom theme based on the BlankSlate theme. The ...
1
vote
2answers
103 views

Is it possible to nest get_previous_post()?

I am trying to retrieve the previous and the 2nd previous posts' featured image as well as the two next posts' featured image. <div id="cooler-nav" class="navigation row"> <?php $prevPost = ...
0
votes
2answers
27 views

Call featured image url

How do I get the URL of my featured image? I am using buffy and I can Call The URL of The post and so on, but can't figure out how to Call The URL of The featured image.
0
votes
0answers
87 views

Show prev and next post links for parent post of current image in attachment page?

I use this code to show previous and next posts (in same category) on post pages (single.php). <?php $next_post = get_next_post(TRUE); // TRUE = in same category if (!empty( $next_post )): ?> ...
0
votes
1answer
31 views

Check if parent post is sticky on attachment page?

I use this code on post template (single.php) to check if current post is sticky: <?php if ( is_sticky() ) echo 'Post is sticky.'; ?> But it is not working on attachment page template ...
0
votes
1answer
85 views

How to scale up image into thumbnail without distorting it?

I have a section in my single post page that contains the post thumbnail. When using a smaller image as featured image (smaller than the thumbnail size, in width or height) it gets distorted to fill ...
0
votes
1answer
72 views

WP_Query condition affects posts_per_page count

I'm trying to create a new WP_Query that displays the last 5 posts from cat 1 that doesn't have a thumbnail. This actually works: <?php $the_query = new WP_Query( 'cat=1&posts_per_page=5' ); ...
0
votes
0answers
18 views

alternating placement of the_post_thumbnail

I have this situation where I need to alternate the placement of the_post_thumbnail(). I am looking for a better way of doing this that doesn't require so much code. The only way I could find to do it ...
0
votes
1answer
33 views

How to output thumbnail twice in a loop

ok I have a portfolio page. & I have two question: number 1: Every portfolio item has thumbnail attached. what I want is to print out the first thumbnail from the first post twice. One at the ...
0
votes
2answers
51 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
60 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
0answers
17 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
1answer
92 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 ...
0
votes
2answers
34 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
19 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 ...
0
votes
1answer
160 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 ...
0
votes
1answer
41 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 ...
1
vote
1answer
47 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
82 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
60 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
1answer
63 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
262 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'); ?> ...
0
votes
0answers
60 views

Can't update/save featured image

I have a site that for some reason I can't seem to save a featured image to the post. When I set the featured image, it pulls it in fine - however when I hit "save" then the image disappears. Does ...