Images are used in different ways by WordPress.You can use a theme with images in layout, place images within your post/page content, display images next to visitor's name called avatars etc

learn more… | top users | synonyms (3)

0
votes
1answer
20 views

How to relocate images

I need to move all images attached to posts of a specific category (MyCat) from its current standard location (/uploads/year/month/) to a specific category folder (/uploads/mycat/). For instance: ...
0
votes
1answer
51 views

the_content not showing responsive image attributes srcset or sizes

I'm using WordPress 4.4.2, but am unable to get the new responsive images functionality to appear for the_content. It works for featured images, just not the_content images. I have no plugins ...
0
votes
1answer
13 views

How to apply image alt descriptions from media library?

Consider this hypothetical: I upload photo.jpg to my media library, but DO NOT provide an alt description there. I then use that photo across several different pages of my site. Ideally I would ...
0
votes
2answers
178 views

Gather posts into a cart/lightbox and share with another user

Ok I've almost completed a Wordpress site that is a multi-user Image Library. This is a private site, where users must be logged-in to view it. The average user cannot get to the backend (wp-admin) ...
0
votes
2answers
113 views

Keep image EXIF info after compressing original image?

After testing I realized that Word Press after image upload will make medium and thumbnail sized images of original image without EXIF/IPTC info I realized it is because GD image library is used on ...
0
votes
1answer
23 views

Search by Attachment ID

I'm building a stock photo page for my company where we upload all photos our staff created so that it can be used later. It shows the ID of the image by post->ID so that users can see it, note it and ...
0
votes
1answer
18 views

Images don't load erratically

Images load erratically or don't load at all on the pages of https://imsgeneva.ch. For example, https://imsgeneva.ch/the-school/ has an image that is consistently affected by the problem. However, ...
2
votes
1answer
40 views

Responsive Images Resizing Images

WordPress's automatic responsive image code is setting the size of certain images larger than it should be. Here is an example: On this page: http://healthyhints.wpengine.com/hot-yoga-benefits/, the ...
0
votes
1answer
34 views

How to call thumbnail by aqua resizer in best practice. Specify image dimensions's notify from GTmetrix

I am using Aqua resizer to resize thumbnail on my loop. More flexible than using thumbnail from WordPress. The problem is, image result by Aqua Resizer's has no width and height pixel. The are missing ...
0
votes
0answers
27 views

“image-name.jpg exceeds the maximum upload size for this site.” but image is only 11KB

I was directed to your website by my theme developer but then read that I should not post WordPress support issues, so please forgive me if this is not allowed. If it is, this is my situation. I am ...
0
votes
1answer
51 views

Is it possible to preserve original images in order to change image size later?

I want to create a simple wordpress blog site. At the moment I will use a template, but I would like to develop my own afterwards. And I have one concern related to images. Current template has nice ...
0
votes
1answer
41 views

How to attach post ID to image links in Wordpress tinymce editor

I'm trying to output the post ID in the rel-attribute of the image links that are generated by WordPress when using the Add Media button. I found a way to retrieve the post id and also how to ...
0
votes
0answers
27 views

Images problem in WordPress backend

After an attempt to backup an old version of WordPress in order to edit a theme, the images: Show a placeholder as a thumb in library. Can't be seen when edited. Don't show as featured images and in ...
-2
votes
1answer
44 views

Create decorative image border with CSS? [closed]

I'm trying to create a custom border style for several images on a website (building in WordPress.) Is there a way to get the style shown below with pure CSS? (i.e.: trying to add the dark green wavy ...
0
votes
0answers
33 views

Combine file rename function with file upload code

I have this code for upload files[images] : and I don't know how to combine with this function for rename file on upload from this post : File Rename function Thanks. case "window-image": ...
0
votes
1answer
50 views

Featured Image in 4.4 should be larger on mobile device

I work on a theme that displays 3 columns with images, so the size for thumbnails on large displays will be 360x240px. When resized, on some mobile devices, like iPhone, there will be just 1 column ...
1
vote
1answer
42 views

Featured image (responsive) above content is too small after update to WordPress 4.4

In my theme, I placed a featured image of a page above both the content and sidebar columns, spanning both columns, using <?php the_post_thumbnail('large'); ?> where "large" size is defined as ...
0
votes
2answers
52 views

Display image title and caption inside a single post

I want to display image title and caption inside a <p> tag in single post in the_content() function for every image that has one. So for example if I add gallery, and define title for every ...
0
votes
1answer
29 views

Why does the Hard Crop option Scale?

I have a number of custom image sizes. I noticed earlier, when I was publishing a new post, that the post image was cropped AND scaled. It is exactly the right dimensions.. but it isn't the portion of ...
0
votes
1answer
82 views

Get post embedded image caption

I am trying to get the caption of post embedded images to then use on a lightbox. This is my code: function my_theme_prefix_content_gallery( $content ) { global $post; $args = array( ...
0
votes
0answers
37 views

Get image url from a form

I am new to Wordpress plugin development. I have some questions related to my plugin. I want to get a image URL from a form at backend of my plugin from user and assign it to a (html img) tag src ...
1
vote
0answers
19 views

Edit image results in copies of file being created

I am encountering what appears to be a file duplication issue when using the "Edit image" function. In this case specifically I am cropping the image but any edit process should have the same effect. ...
1
vote
1answer
34 views

Get img alt tag from a Image that has been uploaded through the Customizer

So inside this theme I'm making for a client there is a section inside the customizer that allows them to change a header on each individual page, my question is how do I fetch the alt tag of that ...
0
votes
0answers
33 views

A way to increase image hard crop quality?

WordPress hard crops images when uploaded. I placed this code snippet in functions.php to make sure there is no image compression/quality loss on image upload and it worked great: add_filter( ...
0
votes
1answer
16 views

Add image to post

I've tried attach an image to post but my code doesn't work and I tried a lot of things, a lot of code, etc. What happen? I've tried with this: $postData = array( ...
-2
votes
1answer
23 views

How to get customable image header?

I'm creating new responsive theme. How do I get customable theme header image with text inside the image? For ie. Site title in the header image. I read about using add_theme_support( ...
0
votes
1answer
37 views

Download button for Featured Image in every post - automatically

I want to add download button for featured image in every post automatically in WordPress with the usage of php files. I don't want to use shortcodes, custom html in every post or plugins, cause I ...
0
votes
1answer
42 views

Add retina “2x” in attribute “srcset”

I need to add the "2x" to the url attribute srcset in wordpress 4.4.2. Maybe you can do so using a function in the functions.php file?
0
votes
0answers
19 views

Deleted media library images return broken image even after reassigning correct image

I use Genesis as well as Easy Recipe Plugin. Versions all current as of 3/17/16. In Media Library I deleted a number of images previously used in my recipe posts. I then updated featured image and ...
-2
votes
1answer
36 views

Want to show pop up image on home page every time when i refresh it [closed]

i want to show pop up image on my home page when i open my site. And when i refresh the page it should appear again as a pop. I could not find such plugin. Is there any plugin for it ?
0
votes
0answers
24 views

Add text to wp_get_attachment_image_src

I am calling the thumbnail image this way: <?php $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array( 300,300 ), false, '' ...
0
votes
1answer
37 views

Weird encoded error when using wp_generate_attachment_metadata()

I'm AJAX POST-ing images to Wordpress from another server and using a script to upload them into the Wordpress file system. I get a strange output/error for the AJAX response, which I've narrowed ...
-4
votes
1answer
27 views

How to remove the intro animation which appears during the load up of some Wordpress themes? [closed]

How do you find and delete the code which makes the loading animation at the very start of every page on many wordpress sites appear? Sometimes the animation is a simple loading wheel gif image and ...
1
vote
1answer
62 views

How to output images as figure/figcaption

I'm trying to figure out how to output the WP images from the media uploader as Figure/Figcaption. Using the WP Twenty Sixteen theme the output is figure/figurecaption by default, and searching for ...
0
votes
1answer
109 views

Rewrite inline image markup

Is there a way of writing a function that will replace the standard markup of an inline image within the_content, with a way that moves the size class to a parent container, and a series of data ...
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
195 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 ...
0
votes
1answer
12 views

How to stop a post from publishing if the file upload is not a image/gif

This is the code and i want to stop the post publishing if the file is not an image Is this possible ? case "window-image": $format = 'image'; $title = ...
0
votes
1answer
23 views

Troubles with code for upload a image

can someone give me please a code for image upload ? i try many but no one works , this is what i have : $post = array( 'comment_status' => $comment_status, ...
0
votes
0answers
71 views

Image caption in Magnific Popup for images embedded in a post

I am trying to implement functionality to open my post images with Magnific Popup. I have the following script which works fine: add_filter('the_content', 'my_addlightboxrel'); function ...
0
votes
1answer
15 views

How to indent pictures on Wordpress blog? [closed]

I'm new to Wordpress; sorry if this sounds like an obvious question. I know absolutely no programming at all. Here is a blog post so you can see what I'm talking about. See how the picture doesn't ...
0
votes
0answers
14 views

WAMP install acts different than live install when uploading images

I have a WAMP installation of my live site running on Windows 7 using the WordPress WAMP stack from Bitnami. When I try to upload an image file to the WAMP installation, it does not work. I can see ...
0
votes
1answer
46 views

Images in Media aren't showing, not broken

I've recently moved a website from one hosting to another and the website is running in perfect order, but for one issue. All the images on the website that were uploaded from the previous hosting ...
0
votes
0answers
17 views

Get the post body images captions in a lightbox

I am trying to implement functionality to open my post body images with Magnific Popup. I have the following script which works fine: add_filter('the_content', 'my_addlightboxrel'); function ...
0
votes
0answers
25 views

How can I batch rename filenames?

I have one thousand images that were recently moved to Amazon S3 and are being served over CDN. Unfortunately they contain the "+" character, which isn't allowed on the CDN. Therefore I have chosen to ...
-4
votes
1answer
44 views

Slider widget not displaying the caption for images

Here is my code for the slider.The place for a caption will appear blank above the image. <div class="slide-caption"> <div class="slide-data"> <a href="<?php // ...
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 ...
0
votes
5answers
89 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
36 views

Wordpress Image details extra field under caption

Can I have an extra field on Wordpress Image details under caption ? I have seen a lot of tutorials and code snippets for adding WordPress Media Uploader custom fields but I couldn't find any ...
0
votes
1answer
23 views

Query Image File of a Different Size

I know that when you upload an image to the Wordpress media library, it automatically creates some duplicates of that image in different sizes. I'd like to know how I can return those differently ...