Automatically generated smallest size of an image.

learn more… | top users | synonyms

2
votes
0answers
21 views

How to create thumbnail of different files?

I am storing my uploads in a separate folder and using separate table to save the location in database. I have gone through WP_Image_Editor , wp_image_editor_gd and wp_image_editor_imagick . I also ...
0
votes
1answer
4k views

Getting blank thumbnails in media library?

I run a Multisite installation with 10 blogs. All the other blogs work fine except for one where any image that's uploaded does not show up in the media library. There's just a blank image instead of ...
0
votes
2answers
795 views

How to get thumbnail from post attachment in this loop

I use this code to display Most popular posts based on view count, but I dont have images in post content I have all images attached to post via attachment (gallery) How to replace this "thimthumb" ...
1
vote
1answer
939 views

How to get cropped thumbnail source for custom post type

I need thumbnail image url with size 148*148px. I using custom post type for testimonials. I need just the image source like http://example.com/demoimage.jpg. It is possible to get cropped image ...
1
vote
3answers
1k 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, ...
1
vote
1answer
676 views

How to Delete All regenerated thumbnails but keep the original ones?

I have a WordPress site which used to weight around 350 MBytes. Then I changed the theme and found that I have to regenerate the thumbnails. So I did it, Twice actually, but Now the problem is that ...
2
votes
2answers
6k views

Add Title Attribute to WordPress Image the_post_thumbnail

i use this code to show post's thumbnail in my site but this code cant show the title Attribute of the thumbnails. how can i add Title Attribute to WordPress thumbnails? <?php if ( ...
0
votes
2answers
483 views

Thumbnails are not cropped even after selecting “Crop thumbnail to exact dimensions”

I am moving Wordpress site from one domain to another. In the old domain the WP version was 3.5.2 while in the new domain WP version is 3.8.1. There is a page named "2002" which just contains an ...
0
votes
1answer
39 views

How To Add and Display Category Image

I have created a WordPress plugin to create a widget area to display category names (total nmbr of post) and description.Now I want to show the category image just after the category name and after ...
0
votes
1answer
21 views

Category page with thumb is ok but can't do the same with tags

I got a wp theme that can display a category page with thumbs (of posts) $cat_args = array( 'orderby' => 'name', 'order' => 'ASC', // 'number' => $num, 'child_of' =&...
-4
votes
1answer
34 views

Regenerate thumbnails in S3 bucket

I am running a multisite wordpress website and all the images are uploaded to S3 bucket. I would like to change the template I am currently using with a new one. The problem is that all the old ...
1
vote
1answer
32 views

how to display image from rss

i'have added thumbnail image to Rss of my blog and I'm using this code to display the rss in another website . please guide me how to add image thumbnail to this code ... see the result at : ...
1
vote
1answer
1k views

How to link to featured image to media file URL

I have enabled a function when I uploaded an image, it auto create a post with that image as the featured image. Now I wish to link to that featured image to that of the image file/media file URL so ...
0
votes
0answers
30 views

How build/rebuild thumbnails for wordpress image by php + mysql without plugins

This a part of my project $query5 = "SELECT ID FROM wp_posts WHERE post_name='".$post_id."'"; $checkpost= mysqli_num_rows( mysqli_query($conn_link,$query5)); //check if post exist ...
3
votes
2answers
9k views

How to set thumbnail image for a (child) theme

I've created a basic child image for twentytwelve, and it works as expected. The only issue is that it does not have a thumbnail image in the themes page: How do I set a thumbnail image for my ...
2
votes
2answers
759 views

Underscores.me retrieve next / previous post thumbnail in post_nav function

I am using Underscores.me for a project. I'd like to add the featured image (thumbnail) to the previous / next post links. They have a function which I'm trying to edit called THEMENAME_post_nav(). I ...
1
vote
0answers
809 views

How to make thumbnails of uploaded animated gifs NOT animated

I am having an issue where I want the thumbnails of my animated gifs to NOT be animated. I tried to talk to hostgator about helping with this issue and they simply said that I must find a solution ...
1
vote
1answer
26 views

Trying to remove post thumbnail with plugin

I have a plugin that need to remove the post thumbnail under certain conditions. Tried to hook to "get_post_metadata" filter but the code doesn't seem to work. Here's my code: public function helper(...
1
vote
1answer
41 views

Add version query tag to all images

I want caching all images on my site and prevent the browser download the images all times, so I would like add an version query tag to all images (for example: ?v=20160505) How can I add this for ...
0
votes
1answer
20 views

related author post thumbnail shows post thumbnail

using the code below to show 4 related posts from author <?php global $authordata, $post; ?> <?php $authors_posts = get_posts( array( 'author' => $authordata->ID, 'post__not_in' => ...
0
votes
1answer
32 views

Image Sizes/Thumbnails not generating on local install Ampps

I'm not sure what is going on. I can't get the thumbnails to generate. I tried the "force regenerate thumbnails" plugin, but that didn't work. I' don't have any plugins running and I've tried with a ...
0
votes
1answer
35 views

Add caption to thumbnails in content

Still trying to get the answer, i don't really know wordpress core (but i'm actually pretty good in PHP), I can't find how to add caption to my images in posts. I know we can use get_posts to any ...
1
vote
1answer
49 views

Media thumbnail for custom post inside post content

Some media are added to the post but not inserted into post content. How to insert media into post content without doing it manually. I was able to find the following code to display the attached ...
0
votes
1answer
14 views

add_image_size cropping changes on Mobile devices

I have images that are being cropped by wordpress with add_image_size( 'centerright', 320, 320, array( 'right', 'center' ) ); But on mobile, it seems showing those same thumbnails but the default ...
0
votes
1answer
37 views

add_image_size not working

I am trying to resize an image using either the following code: add_image_size('poster-full', 450, 9999, false); OR add_image_size('poster-full', 450); I need it to be resized widthwise, and height ...
4
votes
0answers
287 views

the_post_thumbnail responsive srcset not populating with custom image size

I am trying to use the new responsive images feature in Wordpress 4.4 but I keep running into a particular problem when trying to use the_post_thumbnail with a custom image size. It seems I cannot ...
-1
votes
1answer
20 views

How can I add a featured thumbnail into a div via a data-image-src?

I am using parallax.js and this is how It gets added. It works fine when I direct link to an image, but I would like each post's featured image to display here instead. <div id="featured" data-...
0
votes
1answer
17 views

How to link custom thumbnails instead of featured thumbnails in slider

I am quite new to working with PHP and WP, so this question might be extra stupid, I honestly can't tell: This code generates Featured Image Thumbnails for the slider (there is a main slider, and ...
0
votes
0answers
26 views

some tweak to a upload featured image code

from three days in a confusing me with this problem , i have a code for publishing a post from front end for images and video, for videos he take the thumbnail and put in featured image but for images ...
0
votes
0answers
10 views

to set some background for these image thumbnails

On homepage of our wp site I show thumbnail of product(woocommerce) image, but these images are of different size and different ratio, then thumbnails could look differently. If there is a good way ...
2
votes
2answers
3k views

How To Delete Desired Image Sizes From wp-content/uploads?

My default media setting in WordPress blog is 150x150, 300x300, 1024x1024 respectively for thumbnail, medium, large images. Now I am designing a theme that need different size thumbnail images to show ...
0
votes
5answers
101 views

Cannot access the thumbnails of attachment images… Cannot find the reason

I have a custom form that allows users to make posts and also upload images with it. The images are saved in wp_posts as post_type = attachment with a guid to show the image. Now I have created a ...
0
votes
0answers
47 views

Conditional image thumbnails generation

Situation: I have two different front-end pages where users can upload images. I use media_handle_upload() to do so.. I would like to set: only thumbnail-65-65 on one page (disable all other sizes,...
0
votes
1answer
102 views

Fit image to Thumbnail canvas size

I need to upload images with differrent orientation (portrait and landscape) and I don't want to crop post-thumbnails. But I need always thumbnail size 250x250px. If I upload portrait oriented image -...
-1
votes
1answer
280 views

How do I change the woocommerce product gallery to show all thumbnails instead of three at a time in a carousel?

I am building a site for a client and I can't seem to figure out how to remove the product gallery carousel setting. For the final result, I want to be able to see all the thumbnails at once and not ...
0
votes
0answers
13 views

Widget that allows image selection

I'm trying to develop a widget that allows the user to select an image to display on said widget. Right now, i'm getting the image from the library and displaying it's thumbnail on the widget's ...
1
vote
0answers
16 views

Fixing image names for a site being restored

Fixing image names for a site being restored The WordPress site went down last week and is being restored. When a image(image1.jpg) was uploaded a week ago using the back-end of WP, it likely was ...
0
votes
1answer
113 views

How to include featured image on blog post preview?

I wanted to include the featured image to the blog posts' preview on the front page, however either I get the entire image with the options of cropping some of it off or I can't have any image on my ...
0
votes
1answer
56 views

Featured image on post edit page not loading over HTTPS

Our site uses TLS and to the best of my ability I've forced TLS everywhere. I've defined FORCE_SSL_ADMIN to be true and also tried the following filter which I've borrowed from the plugin SSL Insecure ...
0
votes
0answers
26 views

How to get thumbnails to display in Media Library

Currently, all of the images on my live site are showing but when I go into the Dashboard and try to view the images in the Media Library, all i see are blank spaces as if the images cannot load. This ...
3
votes
5answers
16k views

Make thumbnails in woocommerce replace the main image instead of opening fancybox

I would like the thumbnails underneath the main image on the single product page to replace the main image when they are either clicked or on hover, I prefer hover. Right now the thumbnails just open ...
0
votes
1answer
20 views

Wordpress can't generate thumbnail from jpg File

I have dedicated server with 16GB DDR3, Intel Xeon, PHP 5.5, GD and other Library Installed but WordPress can't genereate thumbnail from file with .jpg and other format extension, only from .png file! ...
0
votes
0answers
202 views

Generate Thumbnails in wp_handle_upload

I'm developing my first plugin, and I use "wp_handle_upload" in order to modify images (with PHP) during their upload I'd like to do the same modification, also on the thumbnails generated by ...
0
votes
0answers
10 views

if the image is smaller than the thumbnail, create anyway the thumbnail [duplicate]

I noticed that wordpress does not allow generating thumbnails if thumbnail size exceeds the size of the original image. Is there any way to prevent this? Bfi_thumbs plugin generates the thumbnail ...
2
votes
1answer
42 views

Cannot get full thumbnail size using the_post_thumbnail

I cannot get the full (unmodified) image size using the_post_thumbnail( 'full' ); I have also tried: the_post_thumbnail(); It still returns the cropped image. I can see that the unmodified ...
0
votes
2answers
263 views

Disable Linked Gallery Images If Mobile Browser

So I found this question here: Proper Way to Remove Thumbnail Links In Gallery and looks to have a good answer, but how can I make that apply only if the user is on a mobile browser, or at least if ...
0
votes
1answer
128 views

Dynamically determine the width and height of a image file to be cropped & uploaded AFTER form submission given fixed aspect ratio

I know that I can use the add_image_size() function in the function.php of the theme to pre-determine the additional desired image file of specific width & height to be cropped and uploaded. ...
0
votes
1answer
175 views

Image thumbnail on single product issue | WooCommerce

I have a premium theme called "Labomba" and been playing around with it for quite some time as I'm building it for someone and now I'm reaching the end which I just need to sort out this issue. The ...
0
votes
1answer
47 views

Full width thumbnail

I have a post part that is called into my single.php and looks like this: <div class="main-content col-md-8" role="main"> <?php while (have_posts()) : the_post(); ?> <?php ...
0
votes
1answer
29 views

set_post_thumbnail() shows Unattached on backend under Media

I'm using front-end form to submit content and use // Set thumbnail $newupload = set_post_thumbnail( $post_id, $att_id ); echo $newupload; to set the Featured image on the post. It actually works ...