Articles of images

Generate fixed image sizes for different pages, eliminate sizes during upload

I’ve built a few sites in WordPress and in general I’m quite pleased with all the possibilities it has developed lately. There’s one main thing that is utterly confusing for end users; the sizes they have to choose when using an image. They really do not understand the concept of pixels, and then they also […]

How to show only posts with images?

I want to hide posts without images on the front page, so I need get an array of ids of those posts. I know how hide posts on the home page by id, but I need to show only posts with images. This is what I have already: function exclude_post($query) { if ($query->is_home) { $query->set(‘post__not_in’, […]

How to change image url?

How can I change the image url from this http://i0.wp.com/example.com/wp-content/uploads/2014/06/imagename Into this: http://www.example.com/image/imagename.jpg Or into this: http://www.example.com/imagename.jpg Any suggestions to to solve this problem?

Display number of images actually posted

I’m currently using this PHP code to pull the number of images from a post. $attachments = get_children(array(‘post_parent’=>$post_array[0][‘ID’])); $image_count = count($attachments); It is currently pulling any image that is “attached” to the post, however I would like for it to pull the actual number of images that were used in the post. How would I […]

Get URLs for All Sizes of Image via Admin Panel

We want to use wordpress to host image which we’ll use in our email newsletter. To that end, we can obviously upload the image via the Media panel in Admin and either right-click the image and get URL or enter Library and click the image to see the URL in the details area. Then we […]

Why images/photos after being uploaded to my wordpress site get slightly blurry?

I am trying to figure out the problem stated in the title. Every image/photo I upload to my wordpress site gets slightly blurry. I format them according to my wp theme requirements, however after the image is processed by wordpress and I open the site in a browser I is slightly blurry. This is specially […]

Bulk image rotation

I have just uploaded around 70 photos from Windows 10 into wordpress. While all of those photos in Windows are presented correctly WordPress does not recognize their proper rotation. I may use wordpress media library to rotate each image one by one but this would take hours. Do you know any plugin or way to […]

How to add a rel attribute to images that contains their categories?

I’ve added categories to images, so that I can use them to filter images within a portfolio page. Now I’m thinking I need to add the rel attribute to each image that contains its assigned categories. Is this the right approach? If so, how do I add add rel with the applicable categories?

Populate a slideshow list of images from images in a wordpress page?

I’m using the “flexise” slideshow script to automatically scroll a list of images. The list is hard-coded along with the script in a wordpress template page. While this works fine, how could you make it so that the slideshow pulled any images added to a special (private) wordpress page instead of having to add each […]

How to get custom image size for image uploaded in Customizer

I’m using the customizer to upload an image. The code I have below displays the full size image ok but I would like to instead display a custom size of that image that I created below that. This is the code in my template file: <img src=”<?php echo get_theme_mod( ‘image-1′ , get_template_directory_uri().’/images/default.jpg’ ); ?>”> This […]