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
10 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 ...
0
votes
0answers
7 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
14 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 ...
0
votes
1answer
16 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
17 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 ...
0
votes
1answer
20 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 ...
0
votes
1answer
22 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
20 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
17 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
19 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
10 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
29 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
15 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
20 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.
1
vote
0answers
12 views

How to change the attached image's name after save post? [closed]

I would like to let the user upload images with any name, and automatically modify their name to the format as %post_id%-01, %post_id%-02, %post_id%-03... when save post. And I'm using the plugin ...
0
votes
2answers
41 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
31 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
24 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
7 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
28 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
22 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% ...
0
votes
0answers
25 views

Show Featured image above post title

I need help with my worpress website, everytime i post a post my featured image ends up on the end of the post like this how to chanage it so that it shows above or below my post title, Thank ...
-1
votes
1answer
28 views

Fetch first image URL from post and set as featured image URL

I would like the theme to fetch the first image URL in the post area and display it as the featured image. This came from an old Affiliates WordPress theme functions.php file. This company has closed ...
0
votes
1answer
19 views

The location of the html output from the_post_thumbnail();

So I added the_post_thumbnail(); so I can add images through the featured image area in the wordpress. I am trying to add schema to the output since it isn't working by just wrapping ...
0
votes
1answer
64 views

Animated Gif as Featured Image

I am wanting to upload animated gifs to my website and use them as the featured image. I have a couple of questions. Firstly...how do I stop wordpress from automatically resizing the image when I ...
0
votes
1answer
16 views

changing size image within the content

I'm trying to get my images inside the post may larger than 800px ; For this I took a function that resizes image here and I'm trying to create a function to my thumb inside the post come with size ...
0
votes
0answers
27 views

Why don't my thumbnails don't work when setting the size in get_the_post_thumbnail()?

I'm using the code below to display a list of posts on my homepage with thumbnail, title, and summary text. The problem I'm having is that rather than using the thumbnail image which is a max size of ...
0
votes
1answer
22 views

Wanting to change presentation from full post to featured image (post_thumbnail) only

I am working on a blog (http://goo.gl/xazMe0) and this is the code of the index.php: <div id="main-content" class="main-content row"> <div id="primary" class="content-area <?php echo ...
0
votes
1answer
13 views

Featured images are cropped on index and post page

I am using a theme called Simple Bootstrap and after a recent update, the theme began cropping the height of the featured images on both the index and the post page. When I inspect the specific ...
0
votes
0answers
22 views

Admin panel Thumbnail style cropping for custom post thumbnails?

You know how WordPress allows you to choose the cropped area to display on the by default 150x150 thumbnail size? Is there a way to add your custom thumbnail sizes to the admin panel in the same way? ...
2
votes
2answers
45 views

Query sticky posts with thumbnails

I need to display max 5 latest sticky posts that have a thumbnail. And I need to have accurate counting of the displayed posts. I've tried to exclude sticky posts without a thumbnail with meta_query, ...
0
votes
0answers
30 views

hook wp_get_attachment_image_src

I am using wp pods custom fields for custom post types.. I am holding image links in custom fields. With a hook to "post_thumbnail_html" i fixed thumbnails but when i need wp_get_attachment_image_src ...
0
votes
2answers
58 views

Show LightBox when clicking on featured image [closed]

My WordPress site displays featured images at the top of each post. Here's the PHP code from post.php that generates the featured image. <?php if ( current_theme_supports( 'get-the-image' ) ) ...
0
votes
1answer
50 views

Make the first image the post thumbnail without setting it as the featured image

I want to set a post thumbnail without setting it as featured image. My website is https://www.shockinpoop.com/. If you may, please open any article and you will see that the featured image is ...
0
votes
1answer
23 views

How risize a thumbnail?

I have a wordpress thumbnail, but i when set the size this (500,200) wordpress resize the imagen and let it square, only 500x500. I set in functions.php add_image_size ('single_post',500,200) In ...
0
votes
0answers
18 views

“Pagination” for Posts with next/Prev navigation outside loop

I would like to list all posts from a category or all posts on one Page and add a navigation on the right side, so outside the loop which loads my posts. i found this post whick has a similar ...
0
votes
1answer
90 views

How to get image title/alt attribute?

in my wite theme, there is no alt tag configured in home slider post, i have added alt text with image from media upload. i have added below code to add / retrieve alt tag. but it display blank ...
0
votes
1answer
45 views

How to add a class to figure tag for featured images?

I'd like to add a class to tag so that the caption for my featured image will show on hover. Currently, this is the code when I use FireBug: <div class="td-post-content"> <div ...
0
votes
1answer
34 views

MySQL swap one table for another?

So I have a situation with this WordPress site I'm doing where I have to swap the positions of my featured images. I have two per post thanks to the Multiple Post Thumbnails plugin, but now whatever ...
0
votes
2answers
41 views

wp_get_attachment_image_src always returns full-sized image

https://codex.wordpress.org/Function_Reference/wp_get_attachment_image_src#Parameters leads me to believe wp_get_attachment_image_src( $thumb_id, array(100, 100) )[0] would return a 100x100 thumbnail, ...
0
votes
2answers
28 views

Post thumbnail on specific template

I know it is possible to have enable post thumbnails on a specific post type, but is there any way of doing this just for specific template?
0
votes
2answers
97 views

Wordpress get post thumbnail url

Its simple and answered quite often: I want to get the post thumbnail variable. Even if there is a lot of input, I could not make it work for me. Here is my current code I use somewhere inside my ...
0
votes
0answers
26 views

Get Pagination For List of Wordpress Categories

I'm trying to display a set number of categories on a custom page template. The Categories contains featured image and link to their children. I'm using "Categories Images" plugin to get Category ...
0
votes
0answers
15 views

Export huge sites

I né ed to export data from a comple of sites that contain a lot of posts (tens of thousands). When I try to export all, the procedure fails, I get a partial WXR, so I have to export individual custom ...
0
votes
1answer
46 views

Generating a certain sized thumbnail on the fly?

I'm displaying a picture under each post on my homepage using the following PHP code: <div class="preview"> <a href="<?php the_permalink(); ?>" rel="bookmark" ...
0
votes
1answer
64 views

Run javascript upon successfully set featured image

I'm looking into running Color Thief against the featured image whenever it is set or updated. I can't seem to find any way on how to hook into this event. Currently I'm doing what I feel is a bit ...
0
votes
1answer
20 views

Why wordpress doesn't generate thumbnails?

Wordpress doesn't generate thumbnails in my server. I don't know why. Old images' thumbnails get regenerated; however, the newly uploaded ones doesn't. I used Regenerate Thumbnails plugin to ...
0
votes
0answers
37 views

Post Type with Feature Image + Image from metabox - Catch each a unique way

I have a Custom Post Type and'm using an image metabox (Odin theme metabox class). I need to render loop in the url image bgimg metabox, and Featured image as .... The Contrary I can, however when ...
0
votes
0answers
19 views

Post thumbnail editor issue

The post thumbnail editor suddenly stopped working. It gives me the following error. "No crop selected". But I have selected the thumbnail size. As I turn on the debugging mode it gives me the ...
0
votes
0answers
9 views

Generate attachement to Post from featured image

I am using WP-JSON API Plugin. If i choose an image as featured that is allready uploaded in my media library it does not generate attachements Object in JSON like the example bellow. ...