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)

2
votes
0answers
124 views

How to get featured post title & image using JSON API?

Is there any possibility to get featured post title and image using the JSON API. I tried using this: example.com/?json=the_post_thumbnails&count=3 But instead of recent posts, I get featured ...
1
vote
0answers
42 views

How to compress thumbnail images of two different sizes?

I'm new to wordpress and so far with a limited knowledge of PHP, I was able to build up a theme from scratch. I removed the compression for my homepage images for a better quality of pics. Now, the ...
1
vote
0answers
37 views

Setup Featured image on all posts from thesis thesis_post_image custom field?

I moved from thesis to other wp theme and i want to change the thesis post images (these are saved under thesis_post_image in database )as featured images. Site have over 1000+ posts. Is there a way ...
1
vote
0answers
52 views

Export xml use/import images from theme directory

Is it possible to create demo.xml for a theme that when imported into fresh theme installation will use/import images from theme directory folder (e.g. theme/images/demo) rather than import media from ...
1
vote
0answers
104 views

Featured image not working, because of custom user role?

I've got a weird issue. My post thumbnails aren't working with a custom role. Images can be uploaded, and when viewing the media uploader they show as attached to the relevant post. However, when ...
1
vote
0answers
177 views

“Medium” size image displayed instead of “thumbnail” in only one post, other posts are fine

Please take a look at this cicada photo - http://photo.aseev.com/stock-photo/cicada-exuviae/ - below you will see 5 thumbnails, all of them are squared, except one (a bug on white background). It is ...
1
vote
0answers
297 views

Cleaning up bloated wp_postmeta table by removing multiple _thumbnail_id's?

On a very old site (7 yrs) with a lot of posts (30k) I've been trying to whittle down the database tables. The postmeta table is 1.5m rows, 750k of those rows are for a meta_key named ...
1
vote
0answers
100 views

How to replace featured image upload option with the post media image option

I am looking for a way to insert custom URL links in featured Image as well. Currently Featured image tab is only having these basic settings - But I want to add custom URL links to my featured ...
1
vote
0answers
190 views

How to create resized versions of images added with wp_insert_attachment

I'm uploading images to my media gallery and setting them as my post's featured image, which is working quite well. I'd like to generate thumbnails of these featured images, in the same way that ...
1
vote
0answers
574 views

Featured image metabox not showing up

I have a theme installed on WordPress Multisite 3.5.1 which has a one custom post. Now I wanted to have two more so I have created them. Everything is working besides one thing. The featured image ...
1
vote
0answers
197 views

Can I insert the feature image inside the content, after any paragraph?

I want to display the feature image inside a post text, perhaps after the third or fourth paragraph (or any) into the_content. Searching the site I've found this code, by Amit: ...
1
vote
0answers
275 views

Can't Set Featured Image

I have installed the MarketPress plugin from WPMU. I have an ongoing issue with featured images. When I try to set the featured image (in any post) it continually hangs on saving. My problem is that ...
1
vote
0answers
151 views

Resize post thumbnail produces horrible image quality..Any help?

im having a problem figuring this out. I am displaying a random post on the header of my site but the post-thumbnail looses quality when I add a custom size. How can i make it not loose quality? This ...
1
vote
0answers
66 views

Change Featured Image direcly in the Page

In Doing an Image Gallery with Fancybox( lightbox ) using a wordpress loop, take a look at the code inside the loop: <div class="gallery_image"> <p style="width:201px; height:199px;"> ...
1
vote
0answers
549 views

How to export all content with feature images?

I want to export all content with featured images from my localhost WordPress site to the production blog,but when I tried using the default WordPress export-import plugins ,all content get exported ...
1
vote
0answers
964 views

Set featured image from external URL

I have been searching high and low for a work-around to set a featured image from an external URL. I understand by default the image must be on my server to get re-sized and displayed. Essentially I ...
1
vote
0answers
113 views

Featured image upload finished hook

I'm looking for a way to hook into the process of uploading a featured image. Ideally I would want to be able to do some stuff right when the upload has finished, before the thumbnails are generated. ...
0
votes
0answers
10 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
17 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
0answers
36 views

Display featured image on blog page

The commented out portion is what I've added to pull the featured image set on the blog page. Without that chunk I'm able to set the image, or pull from the home page's featured image if that ...
0
votes
0answers
17 views

how to get wordpress categories list with thumbnails?

i am trying to get thumbnails list with their thumbnails images .i tried code below but it only gives categories list . i know there a could do using feed_image but i can't figure out how to do it ...
0
votes
0answers
45 views

get the post thumbnail returns the full size

The function get_the_post_thumbnail($post->ID, 'thumbnail'); not always returns the thumb size of the image (which is 100x100) for some posts it does but for most of them it doesn't. Even though ...
0
votes
0answers
54 views

Get thumbnail using wpdb from external wordpress database

I'm trying to get thumbnails from posts using a wpdb query where the wordpress database I'm querying is not the one from which the wpdb query is being called. That may be a little unclear, so here is ...
0
votes
0answers
26 views

Worse thumbnail quality after GD library install

Last week I had to install the GD library on my server to enable thumbnail resizing for a premium theme. After installing the GD library on the server the image quality of newly added thumbnails for ...
0
votes
0answers
82 views

how to change featured image path according to “alt” property

when a featured image is added, the path for this image is http://domain.com/wp-content/uploads/filename for some featured image i would like to use only "filename" in the path do you know how to ...
0
votes
0answers
70 views

Problem with Featured Image and database

I have an issue with with WordPress install which I just haven't been able to resolve... I have tried disabling all plugins and reverting back to default theme, but the problem remains. The issue is ...
0
votes
0answers
52 views

Resize the image but not Crop

I have a WooCommerce cart for WordPress and am trying to get the images I upload for the thumbnails to be the aspect ratio i set it (270px × 200px) and not crop. Here is an image showing what i’m ...
0
votes
0answers
26 views

problem with blank page

i have a real big problem with my wordpress website functions.php when i put the following code to achive post view and thumbnail. i'm getting the blank page error which when i publish or update a ...
0
votes
0answers
33 views

Building a plugin: use offset values, save to database, call values on frontpage in loop

I first posted this on StackOverflow, but now I realise that this is probably more suited for this site. Updated 26 Feb. 2014 I already that this question will be quite elaborate, so for everyone ...
0
votes
0answers
16 views

Any easy way to automatically set the first inline image in a post as the thumbnail, for relative images?

I stumbled upon a problem in this post if you use a link like i.e. a relative URL, it won't work is there a neat trick around this problem? this solution should be URL independent. I.e. use a php ...
0
votes
0answers
21 views

Make first inline image an attachment, so the featured image can be set automatically with a plugin?

So it is NOT an attachment yet, it is inline e.g.: <img src="../pic/logos/rsi.gif" /> in the post. And I want automate that the first occurrence of such an image becomes an actual attachment ...
0
votes
0answers
28 views

Featured Images stopped working with Sliding Door theme

And that's the whole point of the Sliding Door theme. It still seems to still be working for me in my main browser that I use, but when I open a different browser or have people check from other ...
0
votes
0answers
243 views

Fetching full size featured image to insert in RSS Feed

I am trying to fetch a full size Featured Image (or first image) of the post to appear within my RSS feed. See here I am using the following code function firstImg( $post ) { $matches = array(); ...
0
votes
0answers
39 views

Remove link to post thumbnail in next_image_link() in single-attachment.php

I've added navigation to single-attachment.php: <div class="navigate"> <div class="previous"><?php previous_image_link( false, '&nbsp;'); ?></div> <div ...
0
votes
0answers
161 views

Wordpress wp_update_attachment_metadata image width and height = 1?

Hello Friends I used to set post thumbnail programetically. this is my code. foreach ($csv as $key => $value) { $filename = "wp-content/uploads/images/".$value[8].".jpg"; $wp_filetype = ...
0
votes
0answers
66 views

How to add featured image to a post?

I have a registration form where the user can upload an image. Upon registration I create a post and I would like the uploaded image to featured image. I have tried that but it is no working : ...
0
votes
0answers
265 views

Set thumbnail from URL, by grabbing image in functions.php

So I've written a whole bunch of functions, which are used to display Vine videos. I then have a shortcode which outputs the code. The last thing I have to do is set the post thumbnail. I want to be ...
0
votes
0answers
54 views

need a wordpress loop to put in the sidebar

I need WordPress loop to do the following : check if there is no sidebar widgets active then get 5 recent posts with only titles and thumbnails But here is the thing : I don't want the loop to get ...
0
votes
0answers
170 views

SQL Query to select post thumbnail, post title, post content from a category

I use the db of my wordpress blog to develop a mobile application in Java. For this, I need the SQL query to display the thumbnail of a post, the title and the content in a selected category. I think ...
0
votes
0answers
48 views

Get source from the_post_thumbnail

I'm struggling because I'm using the "Sitewide Tags"-Plugin to grab all posts in a network to the main blog. Now I want to embed the post images to the main blog and the only function you're able to ...
0
votes
0answers
93 views

Image URL only for custom navigation walker (walker_nav_menu)

I'm attempting to build a custom navigation walker that pulls a page's Featured Image into the page's menu item. I intend to use the Featured Image as a background for the menu item (which is prettier ...
0
votes
0answers
125 views

Random Featured Image based on sub-category

I have this code below for adding a random Featured Image to a post in WordPress based on a category. (Thanks to G.M. on this WPSE post) I have two questions about it: First Question: It is ...
0
votes
0answers
54 views

Is it possible to upload multiple images via Media Library tab in Thickbox I've created?

I have a meta box upload button and I want to upload multiple images using that button. Firstly I enqueue required scripts: add_action( 'admin_print_scripts-post-new.php', 'mycpt_admin_script', 11 ...
0
votes
0answers
87 views

Show recent posts thumbnail inside menu

I'm trying to develop a menu bar for a theme that, when the admin adds a category as a child on the menu, it displays the recent posts of that category. Example: I have a menu called "jobs" which has ...
0
votes
0answers
42 views

WordPress Featured Image on Custom Import

I'm working on customizing import plug-in and I'm facing hardness assigning a featured image while importing the data. I'm uploading the images to a custom folder via FTP and each post in the CSV ...
0
votes
0answers
79 views

6 Recent post on front page with either featured image or content image

In my frontpage.php i want 6 recent blogs with either featured image or the first content image, and if these are not available then i don't want to show that particular post. But i am not getting the ...
0
votes
0answers
135 views

Updated WordPress and now image crop, thumbnail setting and thumbnails are gone

I've updated to WordPress 3.7.1 and when I upload images to my site, it's not generating thumbnails. It's also missing the image crop and thumbnail setting sidebar. I created a simple theme but ...
0
votes
0answers
35 views

Adding an existing featured image to a post through mysql

I want to add an already uploaded featured image to a post by adding records to the wp_postmeta table through MySql. Is that possible, has anyone done this? I'm using WP 3.7.1. Thanks in advance. ...
0
votes
0answers
71 views

Pointing Existing featured images to s3 bucket

Our wordpress site is moved to another server and we moved all the images to amazon s3. Updated the post_content and guid to s3 path. On verifying found that the images which are set as featured ...
0
votes
0answers
84 views

wordpress imported images not working for featured image

To import images into my wordpress site, I added the actual image into the correct month's folder in the uploads directory and I created a post as type attachment with that image name and url. When I ...