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
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
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 ...
-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?
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
279 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. ...
1
vote
1answer
646 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 ...
2
votes
3answers
2k views

Showing a placeholder/default img, if no featured image is set

I need to modify the following code to show a placeholder if there is no featured image available. I understand that I need to add a if statement in the following code but wasn't sure of the exact ...
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 ...
0
votes
1answer
676 views

show all the posts thumbnails

I want to display all the posts by the featured image of each post. Is there a shortcode or can you give me some tips on how to achieve this ? Thanks!
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
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
vote
2answers
2k views

How can I get the title attribute from get_the_post_thumbnail()?

In my theme I want to display the featured image, but I also want to display the title attribute (of the image, not of the post/page) beside the image itself. Is there a simple way to do this? Where ...
-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 ...
0
votes
1answer
49 views

Thumbnails not showing in blog

I am trying to add thumbnails to a wordpress blog (that was created by someone else). As a newcomer to Wordpress I understand I need to add "the_post_thumbnail();" inside "the loop" but looking at the ...
1
vote
1answer
347 views

How to get custom image sizes into media uploader dropdown?

I searched net to solve the problem with images size uploaded from media. But not even one worked to me. When I try to insert images from the media into post it does not show my custom image size 608 ...
0
votes
1answer
135 views

Display First posts without the default featured image

How can i display in loop (paged) the posts without the default featured image ? Here is my query of my custom taxonomy template page : <?php $term_region = get_term_by( ...
0
votes
0answers
126 views

wordpress MU display post thumbnails from sub blogs in main site homepage

I have a wordpress MU network with main site and sub-blogs. I was looking all over the internet and couldn't find a good answer to what I am trying to accomplish which seems pretty easy to me. I am ...
0
votes
1answer
133 views

Featured Image inserted through custom query, does not show up

I need to transfer all my records from OpenCart to WooCommerce powered WordPress site. I used custom query to insert the image urls from opencart db to wp_posts as attachment and guid as the URL of ...
0
votes
1answer
53 views

how to create extra post thumbnail with merge of an icon image?

I am searching a way to merge image of play button icon to featured image of the post. Bay be possible between add_image_size process. if ( function_exists( 'add_image_size' ) ) { ...
0
votes
1answer
149 views

set_post_thumbnail when user is not logged in

I'm currently using the set_post_thumbnail() function to insert a programmatically uploaded image to a post. The problem is that the function works perfectly when the user is logged in only. If the ...
0
votes
0answers
98 views

Customized featured image doesn't refresh in post admin metabox after upload/insert

I customized my featured image metabox position, the default name, and text for a custom post type. While I'm able to add/edit an image in post admin, after I have uploaded an image, the post admin ...
0
votes
1answer
223 views

Trying to check and see if a post has a featured image outside of the main loop

I've got a situation where I need to find out if the currently loaded post has a featured image, if it does, I want it to display a different logo than if it doesn't have a featured image associated ...
0
votes
2answers
512 views

Smaller thumbnail in the_content

My site is basically a Pinterest style product catalogue with atleast one image per post. I upload large images, thumbnails of which are automatically generated by wordpress BUT the website has been ...
0
votes
0answers
34 views

wp_get_attachment_image_src match smallest edge

I'm trying to get the minimum image source that fills the given size. wp_get_attachment_image_src(get_post_thumbnail_id(), array(180, 180)) gets the image which fits the size and not which fills it. ...
0
votes
1answer
558 views

add_image_size and add_filter('image_size_names_choose', 'my_custom_image_sizes') not working with wordpress 3.5.2

I'm tearing my hair trying to get additional image sizes appear in the media section when i upload new pictures. It works on older versions of wordpress but i can't get it to work on v 3.5.2 Here's ...
0
votes
1answer
107 views

Only Display a Featured Image on First Post Page

In WordPress a single post can be divided into multiple pages using page-links. Currently, I use featured images on my post pages and call them by size, as shown below. If an image is larger than ...
0
votes
1answer
406 views

Cannot upload featured image to a custom post type

For some reason I am not able to upload images OR set the Featured Image on a custom post type in my custom wordpress theme. I have added theme support of post-thumbnails to my functions.php file and ...
0
votes
1answer
64 views

Convert featured images into “product images”

I am developing a large ecommerce site using Wordpress and WP Ecommerce plugin. I recently overhauled the theme and framework. Where as before I was only required to set a featured image for a ...
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 ...
2
votes
2answers
407 views

Implementing Zurb's Interchange Into Wordpress

I'm really scratching my head trying to figure out the best method for responsive images with Wordpress. Zurb just released a new javascript plugin for their Foundation framework. I'm using Foundation ...
0
votes
1answer
400 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 ...
-1
votes
2answers
653 views

Carousel Hover Image

I a using an image carousel to display some pictures on my website. The carousel I am using is called: Jcarousellite (http://www.gmarwaha.com/jquery/jcarousellite/). I have the carousel setup, styled, ...
0
votes
1answer
236 views

Displaying and Querying Posts with Featured image

I have added Featured image support for my posts by adding the following in the functions.php add_theme_support('post-thumbnails'); I created 3 posts with Featured Image and i want to display them ...
0
votes
2answers
65 views

How to get the image sizes, in a function, as per the sizes mentioned in the media settings?

I'm making a custom function for my WordPress site. function mediumFeaturedImage() { if ( has_post_thumbnail() ) { ?> <a href="<?php the_permalink(); ?>"> <?php ...
1
vote
1answer
610 views

Image still attached to post even after removing it as featured image

I'm sorry if this is too noob of a question, but when I upload an image and set it as the featured image then later remove it (as featured image), the media list still shows it's "Attached to" the ...
0
votes
1answer
101 views

setting featured image is not working while running script in background, works when running that script from browser

I have creted a script which will fetch content from one of my site and automatically create new post in my wordpress blog. When I am running that script from browser, its working really cool! post ...
0
votes
1answer
161 views

apply_filters to featured image

I have a page where I have embedded the page using these lines of codes at function.php: //------Embed Content------ //Title function CustomFunction_ShowPage_Title($id) { $post = get_page($id); ...
0
votes
2answers
2k views

Add class name to post thumbnail

I'm using post thumbnails to link to a page. Is it possible to add a class name to the post thumbnail image. <li><a href="<?php the_permalink(); ?>" ><?php the_post_thumbnail(); ...
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 ...
0
votes
1answer
84 views

add_filter with specific thumb names

How would I run add_filter only on some specific registered thumbnail sizes '$size' ? like 'large' , 'medium', etc?
0
votes
1answer
56 views

resizing of thumbnails not working

i have the following in my functions file from the wordpress codex <?php add_filter('show_admin_bar', '__return_false'); if ( function_exists( 'add_theme_support' ) ) { add_theme_support( ...
0
votes
3answers
286 views

Crop featured image by default

I'm having trouble finding out how to accomplish this - I want to display a cropped version of an image in the post. So when it's uploaded, it would automatically be displayed cropped. Is there any ...
0
votes
1answer
934 views

Define width of featured image thumbnails, but also make responsive?

So I know how to define thumbnail images with set_post_thumbnail_size and it works, but the issue is that the image isn't responsive when I do that, right? When I define the thumbnail to be 300 x ...