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

Image Gallery / Thumbnail for Theme Framework through plugin form

I'm using WPUF plugin form in order to submit custom post_type from frontend and I need to implement the form to themes framework, so it can set the thumbnail / gallery in submitted posts. I ...
0
votes
2answers
78 views

Modify WP_Post before processing

I am looking for a way to modify WP_Post object before it's processed and displayed on the page. Reason - I built my site when WP was still in version 2.0, or even earlier. I didn't attend to it for ...
0
votes
1answer
33 views

WP Loop. If featured image is a panorama (3:1 ratio) execute some code

I'm wondering if there is a way to write a condition (if/else) for a featured image. If user submits a featured image in 3:1 ratio (panorama, one edge is 3 times longer than the other edge) - execute ...
1
vote
1answer
143 views

Reasons why all thumbnail sizes aren't working

The situation: I have both a development environment and a production environment of a website. Both are identical. The issue: On the production site, all post thumbnails show the full image ...
0
votes
1answer
53 views

Image getting out of container [closed]

In my index page, I use the featured image next to the post excerpt. .alignleft { display: inline; float: left; margin-right: 1.5em;} .wp-post-image { margin-...
0
votes
0answers
33 views

Send featured image by form to e-mail

I need to come up with a Function that uses a webform (could be Contact Form 7) to allow visitors to indicate a post by including a friend's e-mail. This e-mail sent will contain the post's content ...
0
votes
1answer
94 views

Store the wordpress “featured image” under »wp_posts« Database table

How to store the WordPress featured image under the wp_posts table. Can any one help me? The reason why I am asking same table details (wp_posts), is because I am using a JSON response to add in my ...
1
vote
1answer
53 views

Print specific image size in galley loop

I have the below loop and would like to print a specific thumbnail size, as this loop currently prints the full size image. How would I print a smaller thumbnail? while ( have_posts() ) : the_post(); ...
0
votes
1answer
119 views

Allow 'Set featured images' to select multiple images

So 'Featured image' option on WP is lacking. What I was expecting is when user selects multiple images it echos out multiple images on the page, instead you can only select one photo. I tried to find ...
0
votes
0answers
18 views

Intercept an image before it's uploaded to Media Library

I've got a WordPress website where I need to have some posts with gifs as thumbnails. After researching this topic a bit I realized that I have to intercept the gif before it's passed into Media ...
0
votes
2answers
219 views

Resize image to specific dimension (X to Y ratio)

I've tried to add my custom image size like: add_image_size('224_226', 224, 226, false); I need resize all images to same size what i define in style, when i've uploaded file - Wordpress resize it ...
1
vote
3answers
409 views

Custom user role cannot see or modify featured image

I have created a custom post type called Event and I have enabled support for featured images in my functions.php file, but still my custom user role can not see the featured image meta box on the ...
0
votes
1answer
25 views

Echo recent posts each with its own respective featured image

I'm trying to create a grid-type view for a custom home page. it will be a simple grid that will contain three columns, with several previous posts in each column. I'd like for each instance to ...
0
votes
0answers
132 views

How to display a featured image and register a tag for the RSS feed?

I am trying to modify my RSS feed to display featured photos while using Angular JS to display this content on another website. I am currently using the Google Feed API to manage the format of the ...
0
votes
1answer
38 views

Wordpress showing image as thumbnail without using thumbnail

I'm currently working with a wordpress theme, where the homepage is set to show all the latest posts. All my posts are showing thumbnails, even tho i dont set an featured image in my posts. It takes ...
0
votes
0answers
67 views

Automatically set the_post_thumbnail to Custom Field Value

I have a custom field (built using Advanced Custom Fields) that I've chosen a Featured Image with. Everything works great, but I'm looking at using this plugin for Social Sharing: https://wordpress....
0
votes
0answers
77 views

Update feature image of custom post type from front end not working

I have successfully inserted feature image of custom post types from front end form but when i try to update title and content works fine only feature image it is not working....
0
votes
1answer
278 views

Serve different images per screen size and cache possible?

So my posts have a featured image. This image is large. 1920 x 1281. The max width is set to 960 so my image is 2x as large for retina screens. However this results in a ~200-300kb file. The images ...
1
vote
2answers
40 views

How can I see where in my themes and plugins certain image sizes are used?

I've had the same WordPress blog for years upon years, and years ago, I installed the Simple Image Sizes plugin to control image sizes. I think I wanted an easy way to set the size of post header ...
0
votes
1answer
203 views

Get the featured image url of clicked post

How can I display the featured image of a post in a modal along with it's content. With the help of a few online threads on similar issues, I tried this: <?php if ( has_post_thumbnail()) { ...
0
votes
0answers
19 views

“Restore original Size” bug

When I click "Restore original Size" the image delets and I get the "image not found" icon. I start getting this error after last update. UPDATE: This bug only found when editing main product image ...
0
votes
1answer
34 views

Why doesn't the Media Browser use thumbnail sized images?

The folks updating our site oft complained about the media browser being very slow, so I went to have a look. And, on the first load of the page, and when doing a search within the media browser, its ...
-1
votes
2answers
331 views

Convert thumbnail ID into image URL

I have a site that needs to migrate from WP E-Commerce to WooCommerce. I'm trying to use WP All Import Pro + WP All Import Woocommerce add on to do this. I exported the WP E-Commerce products in an ...
0
votes
1answer
110 views

Fallback image URL if no featured image exists via a shortcode function

What I'm trying to do is add a fallback image to this shortcode function that grabs the featured image to account for the possibility that a post has no featured image. (This function creates a ...
1
vote
1answer
126 views

How can i place Feature Image under title field in wp-admin?

I am creating my custom Image slider, in register_post_type() -> i use : supports = "title,thumbnail"; i use only two thing in supports, "title,thumbnail" But post-thumbnails default position is ...
0
votes
0answers
69 views

How to display posts order by thumbnail existence in wordpress?

I want to display posts order by thumbnails i.e the post having thumbnails will display first and then display posts without thumbnail. I found same situation on Stackoverflow here , But that doesn't ...
0
votes
1answer
47 views

Can't put a hyperlink on Featured Post's Image

For the life of me I can't get a clean answer to my issue. The codex says to use get thumbnail but whenever I exchange the current code for the get thumbnail everything just stops working. I'm fairly ...
0
votes
1answer
126 views

Removing the first image in content

I've been using this code: function remove_first_image ($content) { if (!is_page() && !is_feed() && !is_feed()) { $content = preg_replace("/<img[^>]+\>/i", "", $content, 1); }...
0
votes
0answers
9 views

Registered custom post doesn't work

My registered custom post doesn't work, but other posts work. function bxx_slider_custom_post_taxonomy() { register_taxonomy( 'bxslider_cat', //The name of the taxonomy. Name should be in ...
0
votes
0answers
157 views

different featured image size in rss feed

I'm looking to achieve a newsletter by mailchimp using the rss feed of my website - which works perfectly. However, I'm calling by mailchimp two different feed to create an offset - which works fine. ...
0
votes
1answer
68 views

Featured images not showing up

I´m having a strange issue with featured images. Here´s what I did: Added theme support for featured images with add_theme_support( 'post-thumbnails' ); Attached a featured image to each post ...
1
vote
0answers
483 views

Customising the size of images served in Visual Composer elements

I'm using the Visual Composer plugin to build, or basically visually insert the shortcode for a number of sliders, latest blog posts and masonry grids. Most of these are set to use a posts featured ...
0
votes
1answer
40 views

Get post thumbnail to display favorites

I use this line: echo (the_user_favorites_list($user_id = um_profile_id(), $site_id = null, $include_links = true, $filters = null, $post_thumbnail_id = get_post_thumbnail_id())); to display a user'...
0
votes
1answer
205 views

Wordpress resizes image to the same size as uploaded

I am writing a theme which uses different image sizes. Here are my targeted sizes as they are set up in under Settings > Media in WP Admin: Here is the functions.php code for the thumbnail ...
0
votes
1answer
48 views

Tweak next_post_link for it to include thumbnail

I am using a fork from underscores.io, and there is this code: next_post_link( '<div class="nav-next">%link</div>', _x( '%title <span class="meta-nav">&rarr;</span>...
0
votes
1answer
107 views

add class to background image

I'm trying to make a wordpress theme, using as framework the twitter bootstrap. On one page template I need to use the featured image as a background image, so I used this code: <?php global $post;...
0
votes
1answer
41 views

Set Featured Image Based on Custom Field

I have tens of thousands of images. I also have tens of thousands of articles. These were both imported from a custom CMS. The image filenames are the IDs they had in the old CMS e.g. 12345.jpg The ...
0
votes
1answer
34 views

Set two default featured images

I use the featured image in a few places in a theme I'm creating and I'm wondering the best way to set a default featured image. I need a thumbnail variant and then a 'full size' version, both using ...
1
vote
1answer
36 views

Wordpress crops images differently on retina screens?

I am currently testing my websites on different types of screens and while my image cropping works perfectly on a non-retina screen, I am running into some cropping issues on retina screens. I have ...
0
votes
1answer
79 views

How to get the URL of a each custom image size of a featured image

I would like to get the URL's of my custom image sizes for a featured image - so I can inject them conditionally. (this in functions.php) To start off, I'm removing the default crop sizes because I ...
0
votes
0answers
23 views

some featured image doesnt appear in front end - but appear in back end - wordpress

Yesterday ive move my website to a new server running with Centos. It appears that some featured image ( not all) doesnt appear in front end . . . . weird things, if i go to edit post, the image is ...
0
votes
0answers
89 views

Show Post title and featured image outside of the box

I'm trying to work out my idea to show post featured image and post title outside of the post content. Let me explain better. I'm using underscore framework. There are three files there. single.php, ...
0
votes
0answers
102 views

How to call the post thumbnails in a list of recent post in wp nav menu?

Thanks to Stack I found a code which allow to list recents posts of each of my categories into my wp nav menu. The code looks like this : // Front end only, don't hack on the settings page if ( ...
0
votes
0answers
26 views

Custom post type: require adding feature image

My plugin contains a custom post type and I would like to force the user to add a featured image for publishing the post. I don't find anything in the Wordpress references regarding this.
0
votes
2answers
146 views

the_post_thumbnail('medium') setting some images width=1 height=1

I have a created a custom post type and gave it a field of image which can contain a gallery. When I'm inside content.php I can call up all available data such as title, postmeta and such just fine ...
0
votes
0answers
101 views

external url image in featured image does not show on 'view page'

This question seems to repetitive, but none of the solution worked for me. I have csv file to be uploaded for products in woocommerce and csv file is having external image link which is supposed to ...
0
votes
0answers
28 views

how can i edit this code to show extenal image as thumbnail

I wanted to place a thumbnail near my latest post showing on my homepage. After much research I come across a code that can show any post's first image as thumbnail, that's cool right? Well the code ...
0
votes
0answers
67 views

How to exclude categories as well as their respective thumbnails from custom prev-next navigation?

I added the following to my functions.php file: function wyrta_post_nav() { global $post; $exclude_cats = "8"; // Don't print empty markup if there's nowhere to navigate. $...
0
votes
1answer
342 views

how to use first post image as thumbnail on wordpress

how can i set my thumbnail to use the first image on my post? most time i use bbcode( [img] ) to place images on my post, i want them to be use as well, have tried so many suggestion, but none meet ...
0
votes
0answers
214 views

Get Post thumbnail without width/height attribute

I am wondering if there is an easier/more efficient way to print a post thumbnail without the width/height attributes. I like to control my image sizes with CSS, so I can do things like: width: 30% ...