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

Featured Image If Else Condition

I have my banner background set to the URL of the featured image. <div id='xpro_shell_text' > <?php if (has_post_thumbnail( $post->ID ) ): ?> <?php $image = ...
1
vote
1answer
204 views

Delete all thumbnails for a post

I have a function that sideloads a YouTube thumbnail onto a page... but I want to remove the featured thumb on the page first (and remove all the various auto-generated sizes, too). I'm assuming I ...
0
votes
2answers
136 views

Get the alt text of the image in a array

I have a php code. That put the thumbs on the screen. I have this: <?php if (has_post_thumbnail()) : ?> <div class="image"> <?php $attachment_id = get_post_thumbnail_id(); ...
0
votes
2answers
169 views

How to show featured image CAPTION only if it exist

I'm using this function in my functions.php to display image caption for faetured images: function the_post_thumbnail_caption() { global $post; $thumbnail_id = ...
0
votes
2answers
118 views

Wrapping Featured Image on Add/Edit Page in div?

is it possible to wrap the featured image on the add/edit page in a div or other code? I don't mean on the front page of the website, but on the back end on the add/edit pages when you're typing up ...
0
votes
1answer
46 views

Edit Media - Edit Custom Sized Featured Images

When I edit images in the wordpress backend - crop, aspect ratio etc. my featured images don't change. I've tried all combinations of saving (All image sizes, Thumbnail, All sizes except thumbnail). ...
0
votes
0answers
115 views

How to get featured image thumbnail to open larger version in attachment page?

I have a thumbnail of the featured image, which is linked to a larger version of the file. At the moment the file just opens in a standard browser window, but I would like it to open in an attachment ...
1
vote
2answers
392 views

Post featured image column on admin post list page

I have a client site which accepts images from users as posts. For moderation, we are opening each draft post which obviously takes a lot of time if a hefty amount of images are moderated. So, Is ...
-1
votes
1answer
47 views

Where is the template from the_post_thumbnail()?

My content.php is used both for my front page than for my single posts. The problem is that it calls the thumbnail with "the_post_thumbnail()" and the thumbnail returns with a particular width and ...
0
votes
1answer
88 views

Hide WooCommerce Product Gallery Images

I have a problem with adding images to the content/product description and stopping them from showing in the gallery below the featured image. They are downloadable products & some of the images ...
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 ...
0
votes
0answers
61 views

Image Editor does not affect custom sizes!

Recently working with wordpress 3.5, I came across this patch :http://core.trac.wordpress.org/ticket/19889 ...which solved the problem of custom image sizes defined by my theme not resizing or ...
0
votes
0answers
117 views

Overriding get_post_thumbnail to get custom image

I'm using SEO Ultimate and I'd like to change the way the Open Graph Integration works with my custom built theme. By default, SEO Ultimate has a default site og:image and uses the featured image ...
0
votes
1answer
109 views

Advanced Custom Field User Help URL

Hi I'm using ACF or Advanced Custom Fields which i saw here a while ago.. What i want is to output a second featured image in the homepage.. Question: 1 <div class="jpl-widgets-d" ...
0
votes
0answers
41 views

Load complete image, but don't bother the site speed

I designed and developed a site for my client. For images, I used the default WordPress sizes: original, large, medium and thumbnail (although I made some minute changes in their dimensions). As I ...
0
votes
1answer
88 views

Secondary Featured Image Function (post_thumbnail)

Does anyone know if it is possible to add a secondary Featured image function to the pages and post editor?
0
votes
1answer
164 views

Remove Featured Image from posts in specific category?

I am building a theme that includes the featured image as a navigation feature outside the single post, but once the user gets to the post in category "Specials", I'd like to take that image away. ...
0
votes
0answers
67 views

How to scroll through post thumbnails?

I have two custom post types that each have a post thumbnail. On my homepage, I have a section that I want to display the post thumbnail of each of the custom post types ...
-2
votes
2answers
45 views

php code for image fetching

<?php mysql_connect("localhost", "xxxxxx", "xxxxx") or die(mysql_error()); mysql_select_db("xxxxx") or die(mysql_error()); $data = mysql_query("SELECT p1.*, wm2.meta_value FROM ...
1
vote
1answer
232 views

Exclude featured image from attachment loop

For my jigoshop theme I'm able to retrieve the images attached to my product post. However it pulls all images from both the featured image and my metabox images. What I'm trying to do is make it so ...
0
votes
0answers
16 views

Recent Post Widget With Thumbnail [duplicate]

I'm using the below code to display recent post with thumbnail (the_post_thumbnail) in my theme. Is that possible using the below code to create a recent post widget with thumbnail ...
0
votes
1answer
68 views

Placing a featured image into header

How can I place featured images into the header, so each post has it's featured image within the main header? Also on category archive pages and the main news page, the featured images are being used ...
0
votes
0answers
285 views

Display Image Captions on Featured Images in Flexslider

I have been racking my brain at figuring this out and am willing to pay a bounty on it. Note: I am customizing a theme from an author who has very poor customer service and support. Problem: the ...
-1
votes
3answers
3k views

Woocommerce - remove the default image placeholder?

How can I show images for just some of the items but not for others? I'm working on a restaurant menu with online ordering, displaying the food menu (woocommerce products) with shortcodes - eg. ...
0
votes
1answer
71 views

Making a thumbnail if there exist a link with. jpg or .png extension in Wordpress

I have changed my question. I was wrong. Check it out I'd say. Is this possible to make a thumbnail if a link contains a .jpg (or .png) extension? I want to make it a thumbnail automatically if ...
0
votes
0answers
18 views

Check if there is an image in a post or comment and make it a thumbnail automatically [duplicate]

Is this possible? So just like video embeds... If it sees an <img> tag in a post or comment, it should make a thumbnail of the image.... Can this be done? If so, how?
0
votes
2answers
210 views

How to add icon over specific thumb

i m not so good with php, but i wanted to do this, and i know its possible, but i dont know how. I m looking at http://codex.wordpress.org/Function_Reference/in_category but it doesnt make to much ...
1
vote
2answers
1k views

set_post_thumbnail_size vs add_image_size

What is the difference between set_post_thumbnail_size and add_image_size? Is set_post_thumbnail_size for all images, and add_image_size for sizing images individually? Thanks.
0
votes
0answers
79 views

Why is Wordpress loading a different sized post thumbnail?

I have a custom theme where I'm using post thumbnails as BG images for a slider. The thumbnails and some other info are entered using a custom post type. However, even though I'm uploading 1440x833 ...
0
votes
0answers
170 views

Full size image option removing problem

I have removed the Full size image option from the media upload window see Code: function theme_t_wp_set_image_size_options( $sizes ){ $sizes = array( 'thumbnail' => 'Thumbnail', ...
-1
votes
3answers
286 views

$attachment->post_title not displaying title

I have this little piece of php. $attr = array( 'class' => 'bigImg', 'alt' => trim(strip_tags( $attachment->post_excerpt )), 'title' => ...
2
votes
1answer
41 views

Require a featured image to publish post

I have a multi author WordPress blog. I'd like to allow publishing of a post only when a featured image is set. How can that be done?
1
vote
1answer
46 views

Get all images in post and comments like Twitter before post title

I want to know if it's possible to get all the images that are in a post and his comments, make them a thumbnail and put it before (or in a sidebar or something) the post title to show, just like ...
0
votes
2answers
300 views

How To Use YouTube Url Stored In Custom Field To Get Video Image and Set it As Featured Image

I have sourced the following code which captures the URL for a YouTube video placed in the content/body the code then gets the video image from YouTube and sets the image as a featured image. ...
0
votes
1answer
278 views

Display post thumbnail in foreach loop

I am trying to display a thumbnail in a foreach loop. The thumbnail is a new image size I have added called "plant-thumb". I have all the desired elements displaying properly except for the thumbnail. ...
0
votes
1answer
443 views

Custom field image to Featured Image

I'm changing the theme of a blog. The problem is when I export the content from the old post and import it into the new one, I don't get the Featured Image. It's the same problem posted here: Move ...
1
vote
1answer
645 views

Display Taxonomy Image on single.php

I'm using Taxonomy Images, and I can't figure out how to display a category's associated image on a single.php. Essentailly, when a user is viewing a post that utilizes the single.php template, it ...
0
votes
1answer
55 views

Any disadvandages if I style the wordpress align classes without img and .wp-caption prefix

In various WordPress themes the margins are only applied to elements when they are images or captions /* Images */ .alignleft { float: left; } .alignright { float: right; } .aligncenter { ...
1
vote
3answers
308 views

Download an image from a webpage to the default uploads folder

I am writing a custom theme/site in which I need to download images programatically from certain webpages to the upload folder and then insert them as part of the post. So, I was able to find the ...
0
votes
1answer
47 views

Retrieve post thumbnails

I am trying to build a wordpress blog from scratch. I am looking to retrieve all the articles from a specific category. I then want to also include the SQUARE thumbnail(not a stretched version, a ...
3
votes
1answer
486 views

Allow user to manually set crop area of default/custom image sizes on upload

I'm looking for a plugin that allows the user to define where the image will be cropped for a given thumbnail size. For example, the user uploads an image, a screen comes up with the image and a ...
2
votes
1answer
140 views

previous / next post with thumbnail

I've got another question regarding next / previous post. At the moment I'm working on our portfolio with several items. Each item is a post with a title, category & featured image. When viewing ...
0
votes
1answer
181 views

Cropping images from top center using Jetpack Photon

I am setting up a website gallery where the uploaded screenshot is 1400px wide and height varies. On my post index page, I need to display a thumbnail of only 900 pixels by 600 pixels. However this ...
0
votes
1answer
99 views

Displaying All Parent Pages as Featured Images

Here is a look at my current code to display all "children" pages of current post_parent (Also would be helpful to know how to display custom parent pages as well...) <?php $args = array( ...
0
votes
0answers
121 views

Featured Image metabox (postimagediv) doesn't appears when it should

I'm using a plugin called Co-Authors Plus for managing guest authors in my website. However, when creating a new guest author, the Featured Image metabox (postimagediv) doesn't appears. I'm almost ...
0
votes
2answers
483 views

Show featured image in sidebar

I'm adding a widget on my sidebar but the Featured Image isn't shown. this is the code of my side bar: <?php /** * The Sidebar containing the main widget areas. * * @package PowerMag * @since ...
0
votes
0answers
8 views

Generate individual pages to photos, why? [duplicate]

When one of the editors write a story and upload a photo, wordpress generates an individual page for it. Example: I have this post with with your photo and this photo have your 'personal' page How ...
0
votes
1answer
34 views

Hide feature image when is not populated

I have a customized a comercial theme with featured images capabilities. When I have a post with featured image everything is ok, but when the post hasn't a featured image the template charge an empty ...
0
votes
1answer
64 views

the_post_thumbnail unless video id is added

I have 2 choices on the edit post page to insert an video ID from either vimeo or youtube. The user needs to select, with a select field (channel), if he wants to embed video from one or the other. ...
-1
votes
1answer
79 views

How to modify Media Library images DPI [ image quality down to make small in size ] [closed]

I wonder if there any code or hook out there to manage the image DPI, for example when we use photoshop or other image editing software we use export and image quality to 0-100%, now i am looking for ...