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

Skip posts without a thumbnail in loop

I want skip every post that has no thumbnail. The code does not work properly yet. Actually the script doesn't show posts without a thumbnail - that's good, but in the loop the post with no thumbnail ...
0
votes
0answers
11 views

Set Featured Image from Form in Front End

I am creating a front end creator/editor for some custom post types. I wanted to have a button that opened WordPress' "Set Featured Image" modal (as is found when creating a post from the admin ...
1
vote
2answers
32 views

Allow author to choose his featured image size

Request from a client. He wants his authors to be able to upload their image and then set it as featured, just like normal. The difference is that when setting it as featured, he wants the author to ...
1
vote
1answer
20 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
14 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 ...
0
votes
1answer
15 views

Add Image Size for Featured Image with Responsive Design

So, I know that I can make a custom featured-image size by adding this to my functions.php file: add_image_size('newsize', 883, 300, true); and calling it with: the_post_thumbnail('newsize'); ...
0
votes
3answers
78 views
+50

specify size of post preview image (not post thumbnail)

On the main page of my blog, I have a section in the header with post thumbnails(140x170px) linking to specific categories. Below within the actual blog loop, I also have post previews- an image ...
0
votes
1answer
14 views

display post thumbnail for specific category outside of loop

I'm building a theme that features a section wherein I'd like to have the single most recent post's thumbnail of a single category displayed between the header and blog sections. Something like ...
0
votes
3answers
39 views

Add title to image post

I can't add the title on a featured image in the recent posts. try this but only get the alt <?php $default_attr = array( 'src' => $src, 'class' => "attachment-$size", ...
0
votes
0answers
25 views

Is there a way to force Featured image to show as attachement?

When adding an image as a featured image to a post - if the image is an existing image in the Media Library, then the image is not added as a true attachment but as a thumbnail, shown like this in ...
0
votes
1answer
22 views

Create post thumbnails from images stored outside of uploads directory

I am redoing some of my older blogs and I noticed with the new themes most of them take advantage of featured images which is fine. The problem is a lot of my older posts that was never set either ...
0
votes
0answers
14 views

the_post_thumbnail(“size”) returns same image for all sizes except thumbnail

I've got 3 default image sizes set up in "Setting > Media Settings > Image Sizes" However, when I use anything but "thumbnail" as the image size parameter in the_post_thumbnail(), it returns the full ...
0
votes
1answer
27 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 ...
-1
votes
0answers
23 views

Add_the_image_size Responsive

I am using the code: add_image_size ('portfolio1', 600, 344, true); to show my portfolio thumbs on my website. But when I'm using tablets and smartphone i want these images width 100%. I'm using ...
0
votes
0answers
23 views

How to upload images using <form> as a post thumbnail?

In my custom image upload form, codes are (generally): if(isset ($_POST['submit'])=='Submit') { $product_image_1=$_POST['product_image_1']; $product_image_2=$_POST['product_image_2']; $newPost = ...
0
votes
0answers
20 views

Post thumbnail size for custom field only

I'm using advanced custom fields (the plugin), and I have some image upload fields. The images that I'm uploading via this custom field need to have a specific size, but I don't want to create images ...
2
votes
1answer
21 views

How to remove thumbnail sizes for specific post type on a child theme?

The theme I'm using includes a slideshow that generates an additional 4 image sizes for every image that is uploaded. I don't need to have all those images being generated for every image. Is there ...
0
votes
1answer
31 views

Custom post doesn't show featured image

I'm probably missing something but somehow my custom post type doesn't display the featured image input field when creating the post. I have the featured image already registered in my functions.php ...
-1
votes
0answers
27 views

html to image featured image

hi how can i use the script below to be able to convert html to image in wordpress so that when i click a button it generates and set the image a featured image, i wanted to create a metabox in post ...
0
votes
1answer
31 views

How to attach images that I “insert from url” into the post?

I'm trying to get the list of images in my post, to display them in the front page... the problem is that when I add a new picture from a URL, it doesn't seem to attach it. $images =& ...
0
votes
2answers
34 views

Featured image for news page

Is it possible to display a featured image on a news page that uses index.php? I'm currently using wp_query to display posts from a specific category on the news page. Each post has his own featured ...
0
votes
1answer
36 views

the_post_thumbnail() get the URL to the “medium” sized image

In the script below, I need to get the URL path to the "medium" size image in the "data-responsive" attribute. Its currently returning the thumbnail size. the_post_thumbnail("thumbnail", array( ...
2
votes
2answers
38 views

Setting featured image with function, 1 part not working

I'm trying to set a post's featured image based on custom fields. There are different types of posts and therefore the featured image should be set depending on which custom fields have been filled ...
0
votes
1answer
44 views

Retrieve Image Attachments Getting Post Thumbnail Image First

I have written a funtion to get post image attachments, is there any way of ordering these images such that the first is always the post_thumbnail? Code below Thanks John function ...
0
votes
1answer
42 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
10 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
104 views

Title on hovering on the featured image

I have used the following code to make a slideshow of the featured image of a category.I want to show the title of the post when hovering on the image. But I don't know how to do it. Anyone please ...
0
votes
1answer
37 views

Post Thumbnail with Fallback Issue [closed]

Update This has been resolved. The "entire code" block below is the corrected and working code. I'm starting to set up a mixed media slider on one of my Wordpress sites. I'm going to write a simple ...
0
votes
0answers
52 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 ...
0
votes
0answers
15 views

Why '/post_type/feed/' differs from '/feed/?post_type=XX'?

I was trying to put the thumbnails for my custom post types in their respective feed using the the_content_feed and the_excerpt_rss filters. The problem was when I reached for the feed using the ...
-1
votes
1answer
32 views

How to set featured image from a variable

I have an image displayed on my post via a variable {$poster}. How could I set this variable to a featured image? This is what I have in my post: <div class="poster"><img src="{$poster}" ...
0
votes
2answers
43 views

If no featured image, add one of the default images into DB

I'm trying to set multiple images (image A,B and C) from one folder (folder X) at random into the database as a default featured image when there's none one set. So on the main page I have all posts ...
0
votes
0answers
57 views

add_theme_support( 'post-thumbnails', array( 'post')); is not uploading the file

So I used the codes below in the functions.php add_theme_support( 'post-thumbnails', array( 'post')); set_post_thumbnail_size(100, 75); And then in THE LOOP I called: <?php ...
-1
votes
1answer
31 views

Image width issue in IE [closed]

For some reason images are being displayed as a thin line in IE 8 and earlier and i cannot work out why this could be. I'm using CSS to re-size the images for the homepage, the reason for me using CSS ...
0
votes
0answers
149 views

Category Grid View Gallery Plugin not showing images as a grid

I installed Category Grid View Gallery to show some featured images from Posts as a grid... and they're only showing up as a list. There should be plenty of room to show these images 2-up. Played ...
0
votes
0answers
32 views

How do I link featured images on my blog homepage to an entire tag instead of a post?

I've found a theme (Hatch) for my blog - link here that I really like. I am trying to figure out how to get the mid-sized featured images or post thumbnails that are currently displaying on my ...
0
votes
1answer
33 views

hrecipe microformat tag to “featured image”

I have a website made with wordpress which includes recipes. Now I would like to add the "photo" hrecipe Microformat tag in order to have a thumbnail on Google searches (hrecipe photo tag) My recipes ...
0
votes
0answers
23 views

Conditional stylesheet based on if there is a featured image returning error [unexpected end of file] [closed]

I am trying to set a custom stylesheet based on if there is a featured image or not but i get this error: Parse error: syntax error, unexpected end of file in ...
0
votes
0answers
31 views

Post thumbnail caption moving to right

I have a portfolio type theme. Each page has a post thumbnail. I have a home page where I have each post thumbnail in a ul list The list is then floated to create a grid. I need a name to go with ...
0
votes
1answer
155 views

Adding featured image to posts created by a plugin

The below code is part of Keyring Social Importer, and it imports my Tweets from Twitter and posts them as individual blog posts on my Wordpress.org install. I was wondering how I could make it set ...
0
votes
0answers
18 views

Generate featured images old posts II

In this original post: Generate featured images old posts This SQL is : INSERT into wp_postmeta (meta_value, meta_key, post_id) SELECT DISTINCT(ID), post_type , post_parent FROM ...
1
vote
1answer
83 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', ...
0
votes
0answers
38 views

Remove featured image link not working

I added a featured image to my post through set featured link in backend. Not when i click on remove featured image, it removes it . But when i update the post then, The featured image still comes ...
0
votes
1answer
23 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
3answers
53 views

Retrieve a specific post's featured image and show on a different page

What I'm simply trying to do is grab the featured image thumbnail image from a specified post/page and display that image on any other page somewhere. So for instance, if it's a single post, use the ...
0
votes
1answer
46 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
0answers
71 views

Setting custom image sizes in child theme

I'm trying to create a child theme that has different image sizes from the custom image sizes created by the parent theme. The code below works just fine in setting the options and everything and the ...
0
votes
0answers
53 views

Bulk change image titles

I have site with more than 1000 posts and they all have one image on it. All have the same title because they where imported via csv... However, I have a custom field on each post that stores the ...
0
votes
1answer
65 views

Import Dummy Content and Post Thumbnails

I am setting up a small dummy content plugin. What I would like to do is import several posts using wp_insert_post. Then I would like to import several images using wp_insert_attachment and then ...
1
vote
0answers
221 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 2 3 4 5 11