Automatically generated smallest size of an image.

learn more… | top users | synonyms

0
votes
0answers
13 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
19 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
16 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
32 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
40 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
12 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 ...
3
votes
0answers
141 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
15 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" ...
0
votes
1answer
14 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
25 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
6 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 ...
0
votes
5answers
79 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
34 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 ...
0
votes
1answer
75 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
128 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
14 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
66 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
44 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
24 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 ...
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
188 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
9 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
41 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
1answer
126 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
45 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
22 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 ...
0
votes
1answer
86 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. ...
1
vote
0answers
34 views

Inside text editor my preview gallery images are in full size

As I described in the title in the edit post page and inside the editor when I submit a new gallery the thumbnails are in full size. I suspect that this error caused when I unset the default ...
1
vote
1answer
43 views

Is there a way to change a post's thumbnail image(s)?

I just recently finished the first version of a blog (here: http://northernconservative.com/ ), but whenever I share a post on social media, the thumbnail image is the atrocious scaled up version of ...
0
votes
1answer
15 views

Echo list attachment size in post

i have a post width 10 attachment image in post i want querylist 10 attachment in post as: <li><a href="url-img-attachment-sizefull-img1" title=""><img ...
0
votes
1answer
26 views

Thumbnail generating and posting

I have PHP code that generates a thumbnail, but it crops out the wrong part of the image and displays wrong. How does it know what part to crop out, and how do I fix that to crop out the portion of ...
0
votes
1answer
124 views

Can't get post thumbnail to display in foreach loop

I've been trying to get the post thumbnail to display in the foreach loop for a few hours now and I can't figure out how to make it work, any help would be greatly appreciated! <div ...
0
votes
1answer
27 views

1px black line appearing down right side of thumbnails (theme snaps) [closed]

For some reason on most of the thumbnails there is a black 1px line to the right of the image. This looks to be a cropping issue or something but there is a 1px thick line on the right hand side of a ...
0
votes
0answers
17 views

Make thumbnails on product-category pages the same size

please im in a huge need to normalize the size of the thumnails, you see what im talking about in here http://www.jovitahandmade.com/boho-chic-bags/ i want to set the same height for all of them, ive ...
0
votes
0answers
58 views

Disable Wordpress thumbnail scaling on medium and large image

I want to disable WordPress medium and large image scaling like it's already possible with small thumbnail by checking the option below. crop thumbnail to exact dimensions normally thumbnails are ...
0
votes
0answers
31 views

How to add custom thumbnail size to media library's display settings / size?

I have added a custom thumbnail size in the functions.php of my template like this: add_image_size( 'post_mainpic', 750, 250, array( 'center', 'center' ) ); Now I want to be able to select that ...
0
votes
0answers
13 views

Thumbnails in my album pages

I'm going to insert a navigation bar (with thumbnails) in my album pages. I've tried in different ways, but no one is working. The code, for "template-album" source, is the following. <?php ...
0
votes
1answer
101 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
13 views

Thumbnail generation use the larger dimension

I am using the jquery masonry gallery. It basically works but i have a problem i cannot solve now. In Settings -> media i gave the thumbnails a sive of "200x200" with the "crop to exact size" option ...
1
vote
1answer
111 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
87 views

Product images (thumbnail open full size same page)

In my custom post type called "product", I have created a template with a few thumbnail images and one full size. When you click on the thumbnails, they opens up in new or same window. But I want ...
0
votes
1answer
141 views

Disable Media File Image Link On Mobile Devices

I'm looking to disable the 'media file' image link on mobile devices, so that when viewing a site on mobile devices we simply have the image being displayed with no link to anything. I am looking to ...
1
vote
2answers
73 views

shortcode get thumbnail size

How to get shortcode thumbnail size? my code get shortcode thumbnail size in functions: function thumb_medium( $atts, $content = null ) { return wp_get_attachment_url( get_post_thumbnail_id( ...
0
votes
1answer
55 views

Wordpress Gallery Thumbnail images look blurry

I am using the standard WP gallery, and it all looks great on the page until I have images with different sizes. I have resized al the images I could and set them to medium size display and those ...
1
vote
2answers
74 views

How can I get I get the thumbnail custom size dimensions?

Assuming I have a custom thumbnail size, as defined by the following... add_image_size( $name, $dim_x, $dim_y, true ); ...how can I get the defined image dimensions programatically, using only ...
0
votes
1answer
63 views

resizes images on the fly

I'm looking for a plugin that resizes images on the fly that I can call via php. I have searched the wordpress plugins for something that does this and wasn't able to find anything that was up to date ...
0
votes
0answers
38 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? ...
0
votes
0answers
29 views

How to setup a new image size in a child theme?

I need to setup a new size for a thumbnail that will be used by a plugin but I can't get this done, this is what I have so far: /** * Registers a new image size. This means WordPress will create a * ...