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
votes
1answer
14 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
15 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
32 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
13 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
22 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
10 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
16 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
39 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
18 views

Jetpack Publicize to Twitter: hashtags and images? [on hold]

Is there any way to add one or two tags from the post to the tweet that Jetpack share when Publicize function is enabled? I am quite surprised with the way Publicize works, at least in my case. I ...
0
votes
0answers
18 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
26 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
27 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
21 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
14 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
54 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
35 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
26 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
24 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
57 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
22 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
14 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
38 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
54 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
16 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
27 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
18 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. ...
0
votes
1answer
23 views

Generate smaller post thumbnail for archives

I have a blog style page where every post has a post thumbnail. Since I have 5-10 posts on my front page it pulls down my page ranking, because the post thumbnails are vastly bigger on the post page ...
0
votes
0answers
36 views

Failed to open stream: Permission denied

I am getting this error throughout my WordPress site. Warning: imagejpeg(/home/petsp_f/public_html/wp-content/uploads/2014/10/filename-66x66.jpg): failed to open stream: Permission denied in ...
0
votes
0answers
23 views

Removing “featured image” & “create a gallery” in sidebar

I was wondering if it was possible to remove "featured image" & "create a gallery" in the sidebar inside the "add media" button on "add a new post" page on my wordpress? ...
0
votes
2answers
33 views

Post thumbnail is not shown in wp-admin

I am currently working on a theme for a client and now just got into a problem: When I want to set an image (also existing/already uploaded images don't work) the editor just not accept it and don't ...
0
votes
0answers
22 views

wp_get_attachment_image_src and add_image_size

In the question below. I am biting off more than I can chew. So I thought maybe I should revise this and start off smaller. I think I should start smaller. I'm not sure what I think I'm doing right ...
2
votes
2answers
88 views

Display Category Thumbnail and links in Woo commerce

I would like to display my categories with a thumbnail in woocommerce. I am able to list the child terms as a link but i would like to add additional content. I have added the code below in which I ...
0
votes
0answers
19 views

Wordpress - adding image pixel restrictions for Featured Image metabox (postimagediv)?

I am wondering how can I add pixel size restrictions for images uploaded within a metabox called Featured Image. E.g. if the image uploaded is not 400 x 400 pixels it would be rejected. (not cropped ...
1
vote
1answer
45 views

Remove dimensions from filename featured image

I have a problem with a featured image. It's a gif, but when I add it, Wordpress adds the dimensions to the filename, which breaks the gif (since then it's not really a gif anymore). Is there a way ...
0
votes
1answer
16 views

Using lower resolution/size images for thumbnails on posts index

In each of my post I set a feature image with a width of 800px. This is fine, however if I browse to the blog index page, which shows all posts (the feature image + an excerpt), then I end up with a ...
0
votes
0answers
18 views

Thumbnails crop setting doesn't show

When I set crop area in edit image panel usually I have area "Thumbnails settings" where I can choose that this new image size should be used for all image formats or only for thumbnail. I updated ...
0
votes
1answer
34 views

Get custom size of thumbnails

This how I am currently retrieving slides: <?php $args = array( 'ignore_sticky_posts' => 1, 'posts_per_page' => 20, 'post_type' => 'slide' ); $slides = ...
0
votes
1answer
64 views

Scrape a webpage for image and add it to post

I was wondering if there was a way to scrape an external webpage for its first/best image and add it to a new post in Wordpress. This seems like it would not be too complicated, but I can't seem to ...
0
votes
1answer
39 views

Featured Image not displaying in a page

I put featured image in a page but it's not showing up when I view the page. But in thumbnails its showing up. How to fix this? here http://www.homecredit.ph/betasite/promos
0
votes
0answers
60 views

MySql query to retrieve post_title, post_content and feature image link BASED ON A CATEGORY

I have been trying for quite a long time to retrieve post_title, post_content and feature image link for all posts BASED ON A particular CATEGORY, from a wordpress database. I have got a query: ...
0
votes
0answers
20 views

Post-thumbnail-template error

My website has viruses. I moved the housing folder to "backup" to clear. Then moved right back to httpdocs. The site is not working. Appeared this error: PHP Fatal error: require (): Failed ...
0
votes
1answer
18 views

Featured Image Module Randomly Disappears

I've been running into an odd problem on our WP blog that has me befuddled. I custom built the theme we use and I enabled Featured Images by adding the following line to the beginning of the ...
0
votes
0answers
44 views

set s3 image as a featured image in wordpress post while posting the post programatically from an external source

I am pretty much new to wordpress. My requirement is that i need to make a post from an external source using ajax to wordpress site. The post data merely contain "posttitle,description,etc..." and an ...
0
votes
0answers
48 views

How to scrape data from a URL and put it into a post

I'm looking for a way to allow users of my site to enter a URL into a form field and have it scrape that URL for a <title>, <description>, and the first image on the page, of which it will ...
0
votes
1answer
36 views

How to store all featured images in a different folder?

I would like to store all featured images for my custom post type in a different directory/folder, & for all the other images used in the custom post type to be stored in the standard place. Is ...
0
votes
1answer
59 views

Url link to feature image in the portfolio [closed]

I am new to Wordpress. i have issue with Feature image. just i need to add URL to feature image(when we click on that feature image , it should redirect to that particular URL). also is it possible ...
0
votes
0answers
97 views

WP dynamic featured image - Can't get second featured image url

(I've already opened a thread on stack overflow: https://stackoverflow.com/questions/30079269/wp-dynamic-featured-image-cant-get-second-featured-image-url Hope it's not considered as double) I'm ...