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
1answer
15 views

Make WordPress size and name images for Retina.js

I'm a huge fan of the way retina.js works for high pixel density displays. Essentially, when it's loading image assets (via <img> or css image) it will check if there's a @2x suffix version of ...
1
vote
0answers
11 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
1answer
79 views

Custom Loop, Match Category with Page: How to display post featured image?

I found this answer. It saved my day, but could you tell me how to display featured image of the post with the following code? When I'm using <?php echo $cpost->post_thumbnail('thumbnail', ...
1
vote
0answers
213 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
96 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
1answer
224 views

Cropping thumbnails to specific dimensions on front end post

Probably not the best title description but here we go. One of my custom post types is for youtube videos which I take the thumb from youtube and upload it as a thumbnail for the post. Now it's easy ...
1
vote
0answers
50 views

Save Thumbnails From wp_oembed_get Function [duplicate]

I'm using the wp_oembed_get function to display embedded videos on a site I'm working on, what I'm trying to figure out is how I can use wp_oembed_get save the thumbnail of the embedded video to the ...
1
vote
2answers
208 views

Specific featured image for each category

I´d like to set specific featured image for all posts in one category. So, if I have category Good Jokes, all posts in category Good Jokes will have the same featured image displayed in front page. ...
1
vote
0answers
157 views

Can't Set Featured Image

This client is a salon that offers a number of unique products for sale in the salon. These products are also available at an external website. I have installed the MarketPress plugin from WPMU and I ...
1
vote
0answers
114 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
1answer
79 views

Show last 2 image attachments from posts

How can i show the last 2 post attachments in my category template? I tried the following But i need to show the last 2 post image attachments if i have the following code function ...
1
vote
0answers
53 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
1answer
332 views

Add a Post Thumbnail to an RSS Feed with custom size

I have two different blogs on the same domain and my goal is to get the 3 latest posts from blog1 to show on the home page of blog2. Everything goes well following these instructions: ...
1
vote
0answers
225 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
56 views

Converting Attachment to Images?

I've had no problem using lightboxes before with attachment images, but I've switched to a new theme called Quicknote and it seems that attachment images now instead link to the attachment page. ...
1
vote
2answers
210 views

offload media to external services

Does anyone know a way (plugins or similar) to offload media (images mostly) in wordpress to an external service? like flicker, or imageshak? I think that offloading images from the wordpress ...
1
vote
0answers
529 views

Set Featured Image Thumbnail from external URL

I have been searching high and low for a work around to set a featured image thumbnail from URL. I understand by default the image must be on my server to get re-sized and display. Need to get a php ...
1
vote
0answers
100 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. ...
1
vote
1answer
358 views

Archive show thumbnail

I want to show thumbnails next to my posts in archive page, however it only shows thumbnails if the posts has a featured image. So i want to show thumbnail for the image attached to the post, but i ...
1
vote
2answers
1k views

Can't get image size set with set_post_thumbnail_size() function

I have a problem with set_post_thumbnail_size() function, which seems it doesn't work. Or at least it doesn't work correctly. I have set a thumbnail size 75x75px in WordPress settings under the media ...
1
vote
1answer
70 views

How do you create a custom template to display a category with an image and related posts below?

I am trying to create a custom template that can give the following effect... Category Name A (with image) post with category name A post 2 with category name A post 3 with category name A ...
1
vote
2answers
502 views

Function to scan for image, attach it to post, set it as featured [duplicate]

Possible Duplicate: Retrieve 1st image in post and set it as featured image, when post is saved/updated I need a function that when a post is saved/updated, it will scan the post for the ...
1
vote
2answers
299 views

Set Post Thumbnails in Percents

I've built this responsive site on WordPress and got a little curious as to how I can set the post thumbnails in percentages. Any help would be much appreciated.
1
vote
2answers
752 views

Show Multiple Size URL of one Featured Image/Thumbnail?

Is it possible to print two different url's from the same featured image/thumbnail? So i have set up my image size.. add_image_size( 'full-size', 460, 9999 ); add_image_size('fixed-height', NULL, ...
1
vote
2answers
416 views

get_post_thumbnail_id() Doesn't return value [closed]

I'm changing a menu from a loop with query_posts to a "custom menu" using wp_get_nav_menu_items, but I can't seem to retrieve the post_thumbnail. The original code I had (snippet): <?php ...
1
vote
2answers
112 views

For homepage images (for small business website), is it better to use custom fields or post_thumbnail?

Already searched on here and couldn't find question so forgive me if it's been asked. I'm trying to use dynamic images on a homepage so my client can maintain the images. I've seen tutorials where one ...
1
vote
3answers
2k views

Add post thumbnail from external image with plugin

I'm currently writing a plugin modifying the post content with the wp_insert_post_data filter. While doing that I would also like to add a post thumbnail using an external image url. It doesn't really ...
1
vote
1answer
122 views

Query the post which have a thumbnail

I've got a highlight section on the header of my website which shows the title and the thumbnail of the last X posts having a thumbnail. Is there any custom query which allows me to retrieve only the ...
1
vote
1answer
2k views

get_the_post_thumbnail ignores my default thumbnail size [closed]

My default thumbnail size is 150x150. Therefore, if I use a custom thumbnail size, such as 75x75 it should use the thumbnail of 150x150 and shrink to fit to my size: get_the_post_thumbnail( ...
1
vote
3answers
1k views

How to grab first image attached to post and display in RSS feed?

I've seen the tutorials on how to grab the first image and display it in a post, and those on grabbing the post_thumbnail and using that in the RSS feed, but does anybody know how to grab the first ...
1
vote
1answer
319 views

Why is the post title and content automatically being displayed in the post thumbnail (Featured image)?

I use the following code to show the post thumbnail (only): <?php // Create and run custom loop $custom_posts = new WP_Query(); ...
0
votes
2answers
3k views

How come Featured Image isn't showing up in my Custom Post Type?

I have thumbnail support added with the following in my functions.php // Add Thumbnail Support add_theme_support('post-thumbnails'); set_post_thumbnail_size( 140, 140, true ); And I create the ...
0
votes
2answers
4k views

How do you remove hard coded thumbnail image dimensions?

How can I remove the width and height attributes from the post_thumbnail when inserting with <?php the_post_thumbnail(); ?>? <img width="800" height="533" ...
0
votes
1answer
1k views

Get current post featured image ID

Is it possible to retreive the current post (inside the loop) featured image ID? The reason why I want this is so I can do something like this... <?php $featuredID = //get the featured image id ...
0
votes
2answers
320 views

Video playing from featured image?

If I embed a YouTube video into a post, how do I put a play button over the featured image so that the video can be played without having to open the whole post? I.e Flipboard the iOS app has a ...
0
votes
1answer
537 views

get featured image url by page id

I am using wordpress 3.4.1. I need to display the featured image of a page. How can i get the featured image url by particular page id. Any help?
0
votes
3answers
229 views

How to add/assign or change featured image in post programmatically?

I have written a plugin that (besides other functionality) makes posts from existing content. For each post I have one picture - how to make them featured programmatically? I do the: $id = ...
0
votes
2answers
133 views

Photo gallery with Featured Images

First, I need to ask if it's possible to create a photo gallery only with the featured images of the latest 6 posts? I assume it is possible but just want to make sure. I don't have much experience ...
0
votes
2answers
391 views

How to replace the_post_thumbnail template tag and show the first inside the post image instead

I want WordPress to return the first post image or a default image if no featured image has been set. My theme uses the_post_thumbnail many times, so I don't want to go through and change all ...
0
votes
1answer
2k views

get_the_post_thumbnail() returns nothing?

Here's my code: function widget($args, $options) { extract($args); global $post; $post_type = $options['post_type']; $num_of_posts = $options['limit']; // Create a new ...
0
votes
2answers
2k views

Featured Image meta box not showing up

I have featured images switched on in my theme: add_theme_support('post-thumbnails'); set_post_thumbnail_size(256,128, true); add_image_size('icon', 128, 128, true); but the Featured Image box ...
0
votes
1answer
715 views

the_post_thumbnail() returns nothing even though has_post_thumbnail() returns true

has_post_thumbnail seems to be working fine but the_post_thumbnail returns nothing. here is my code: if ($favorite_post_ids): foreach ($favorite_post_ids as $post_id) { $p = ...
0
votes
2answers
980 views

media-library: how to insert thumbnails with a fixed width, regardless of landscape/portrait orientation

I've asked a similar question before: How to create thumbnails with a fixed width, so all of them will have the same width? But... this one is related, but different. Please bear with me. Right now: ...
0
votes
3answers
607 views

Looking for a related post plugin which slides-in like the one at inc.com does

Does anybody know a "related post" plugin with behavior like the one at inc.com. For a demo, visit any article at inc.com (ex: ...
0
votes
1answer
451 views

A good way to add a different background image for each page?

I'm working an a Thematic child theme wherein I need to have a unique image decorating each of the site's main pages, from a pre-defined set of permanent images. It would also be ideal to have one of ...
0
votes
1answer
69 views

how to make nsfw post with thumbanil

iam making a comic site like 9gag the front end upload page contains title upload image tags NSFW [checkbox] if every thing is normal the image become featured image of the post , i want the NSFW ...
0
votes
3answers
57 views

Can this be done? Create 50x50 thumbnails of all existing featured images?

Just trying to get a scope of work estimation for a project I need done. My wordpress theme has a custom menu that works best with featured image thumbnails that are 50x50 pixels in size. If the user ...
0
votes
2answers
60 views

Post-thumbnail only for specific post-types?

I have this in my functions.php add_theme_support( 'post-thumbnails' ); This means all my post-types (normal posts and custom-post-types) have post-thumbnails enabled. Is it possible to just ...
0
votes
3answers
230 views

the post thumbnail, scale

I'm trying to figure how to scale the_post_thumbnail to a specific width? Can you guys help? Currently I'm using <?php //Resize post thumbnail $thumbnail = ...
0
votes
1answer
1k views

How do you add thumbnail support for custom post types?

the thumbnail support is working for post, but I have another post type called product and it is not working for this. I am trying: add_theme_support( 'post-thumbnails', array( 'post', 'product' ) ); ...

1 3 4 5 6 7 11