Automatically generated smallest size of an image.

learn more… | top users | synonyms

-5
votes
0answers
13 views

add_filter( 'post_thumbnail_html') vs wp_get_post_categories($posts[0]->ID) [on hold]

Hi there I have a problem bacause of: function my_post_image_html( $html, $post_id, $post_image_id ) { $sowot = wp_get_post_categories($posts[0]->ID); $large_image_url = ...
0
votes
0answers
12 views

Make Wordpress wp_delete_attachment delete files from a pre-defined custom folder

We have created a custom post type which allows our client to upload files to a folder outside of the standard Wordpress uploads folder (wp-content/upload-assets). These files are to be handled ...
2
votes
0answers
26 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
51 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
22 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
40 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
37 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 : ...
0
votes
0answers
31 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 ...
1
vote
1answer
27 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
42 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
22 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
45 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
16 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
1answer
352 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
23 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
0answers
27 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
11 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
108 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
49 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
108 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
348 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
143 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
59 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
32 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
204 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
11 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
1answer
193 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
31 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
166 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
40 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
44 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
18 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 src="url-img-attachment-...
0
votes
1answer
27 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
186 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 id="...
0
votes
1answer
34 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
19 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
70 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
38 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
130 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
17 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
139 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 ...