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
8 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
26 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
25 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
30 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
17 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
27 views

Template Tags return incorrect values on mobile [closed]

I'm writing a website for a company that already has a WordPress-based site elsewhere on the same server (the site I am writing has a different domain, but is on the same hosting machine). The site ...
0
votes
2answers
30 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
19 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
13 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
28 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
49 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
15 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
14 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
15 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 ...
-1
votes
0answers
20 views

Assign multiple featured image to custom post type [closed]

Found the code here, and fix some minor details <?php // Get All Posts. $allPosts = get_posts(array('numberposts' => -1, 'post_type' => 'wpdmpro')); // Specify where the images are located. ...
0
votes
0answers
7 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
22 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
25 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
22 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
28 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
18 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
0answers
19 views

Featured image upload option not working properly?

I'm trying to make a new plugin. I hope it's maxim complete. but now I face a problem. When install my custom plugin then the Featured image upload option not working properly. It's show like a media ...
2
votes
2answers
58 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
14 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
34 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
11 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
14 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
29 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
44 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
30 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
39 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
18 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
17 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
34 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
36 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
33 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
51 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
77 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 ...
0
votes
1answer
30 views

Wordpress returns old thumbnail size after changing media settings

I have had a requirement to update a WP build so that the thumbnail size changes from (the default) 150x150 to 500x500. I've amended the size within the Settings > Media and utilised the awesome ...
0
votes
2answers
62 views

get_post_thumbnail_id /set_post_thumbnail not working

i have a field called bookname and based on the entry in that i am trying to check the posttype = books and pull out the logoid when the bookname matchs but for some reason get_post_thumbnail_id ...
-3
votes
2answers
62 views

Theme:Twenty Fourteen, How to remove featured image on single post page for particular category

I found similar questions to it but none was an exact match to my question. I am using featured image in all my posts. I want to remove featured image on single post view from a single category (Say ...
1
vote
2answers
34 views

Generate image for newly added size

I have added a new image size to a wordpress site with lots of images already present with all their thumbnails. Is there a way to do this: given the post using a specific image, get the attachment ...
0
votes
1answer
117 views

Customize Facebook's sharer.php to pass metadata of wordpress post (thumbnail and title)

I created FB Share button for wordpress post but it does not fetch the metadata from the post. I would like get the thumbnail and the title of the post when clicking share button. Here is the code I ...
0
votes
0answers
26 views

Why will featured image show on some pages but not on other pages using the same template?

Why do some pages have a functioning featured image showing in the sidebar while some pages with the same template and even with the same image don't show the featured image in the sidebar but still ...
1
vote
1answer
35 views

Looking for Add Title Tag on Feature Images on WP

I am facing problem with adding title tag on feature images and also thumbnail posts. I tried to find out but not successful to resolve these kinds of issues. Kindly help me please how to add title ...
0
votes
1answer
35 views

How do I add a default thumbnail to elseif when no get_field('photos'), and no post thumbnail exists?

I am using advanced custom fields pro to display an image if the option exists. If the option does not exist then it will look for a post thumbnail. I already have this code and it's working however I ...
8
votes
1answer
190 views

How to change image type for specific size?

I am optimizing a site with large (dozens) quantity of images on page in a grid. For retina support the images are also need to be 2x sized. The low hanging fruit was to make sure the thumbnail sizes ...
0
votes
2answers
41 views

if statement for featured images

I'm just looking to make sure my home page and pages display my featured image if set, and other wise if not set show blog-banner.jpg. So that's what I thought I had however now my 404 error page ...
0
votes
1answer
92 views

How to set post thumbnail size?

I want to smaller my post thumbnails from 825px to something like 150x150. I'm using the newest version of wordpress and the "sark press" theme. So this is my code: sarkpress-function.php <?php ...