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)

1
vote
0answers
19 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
21 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
32 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
76 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
151 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
256 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
95 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
169 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
510 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
182 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
247 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
146 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
503 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
922 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
112 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
36 views

Create custom image size only if the parent post is in specific category

Situation : I already have a couple of custom thumb sizes added with add_image_size() working fine. Now I need to add another custom-image-size facebook-thumb that needs to appear on my rss feeds for ...
0
votes
0answers
15 views

Using advanced custom field in wp post thumbnails

been trying to get an answer to my question all over the web but couldn't find a hint unfortunately. hope someone can help me here: here is my situation: I am using the great "Advanced Custom Fields" ...
0
votes
0answers
17 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
50 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
48 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
28 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
20 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
12 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
13 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
15 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
16 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
57 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
15 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
74 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
41 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
97 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
43 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
85 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
34 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
53 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
77 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
40 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
70 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
39 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
61 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
122 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
32 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
64 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
66 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 ...
0
votes
0answers
86 views

Featured image and Media Grid

I am trying to get an image in Media Grid's lightbox to another page. I have the images set up in the media grid plugin and when you click on the image it opens a lightbox with a larger version of the ...
0
votes
0answers
10 views

How to create custom anchore to specific past category with feature image?

I created wordpress website and add 6 statics banner. Now i want to dynamic so i created a add category and add featured image as a banner but dont know how add anchore please give me idea or aany ...
0
votes
0answers
53 views

Search for featured image, then for first image, then for video thumbnail

I want wordpress to use featured image to create thumbnail. If there is not, then first image of the post. If not, video thumbnail. Can anyone help me modifying the code? Thanks in advance. USED ...
0
votes
0answers
188 views

get_the_post_thumbnail() returning empty string on custom post type

I've been brought in to help out with development on an existing plugin, and have run into a strange issue. Not sure if I'm overlooking something obvious here. The situation: I'm adding a shortcode ...
0
votes
0answers
27 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( ...