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)

1
vote
1answer
43 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 ...
7
votes
4answers
12k views

How do I delete all UNUSED images from my uploads directory?

I am trying to clean out my uploads folders as they are now starting to take up too much room on my server. I have tried to use plugins to achieve this end such as DNUI and Cleanup Images but these ...
0
votes
0answers
38 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. ...
0
votes
0answers
37 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
18 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
2answers
726 views

extract post image to be featured images

I been working with featured images more lately and I been adding them to my posts as I go. However I have a bunch of older posts that do not have the featured image set and I want to use it for such ...
-1
votes
1answer
639 views

All links to images are broken in a subdomain multi site environment

I've just installed a fresh copy of Wordpress 3.8.1, and then enabled the network feature using sub-domains. In cPanel, I have the wildcard sub-domain pointing to the Wordpress folder, and Wordpress ...
-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( 'custom-header'...
0
votes
1answer
53 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
52 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
25 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
44 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
25 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
38 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
29 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
88 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 ...
1
vote
2answers
143 views

Custom Field returning Numerical Value for Image rather than URL

I have been trying a way round my latest WordPress problem all morning and I feel now is the right time to shout and ask for help. I have been trying to create a people directory, I'm there except ...
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 ...
0
votes
3answers
1k views

Get single image from custom fields made with WCK custom fields creator

I used WCK Custom Fields Creator to create a repeatable custom field for uploading pairs of images (one color, one black and white) to posts. So for example, one post may have three fields, with two ...
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 = esc_html($_POST['title_image'])...
4
votes
0answers
282 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
0answers
79 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
25 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
1answer
16 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
1answer
54 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
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
795 views

Uploaded image not appearing in custom post type

I am writing a plugin which should allow users to create a custom post type called reseller and attach an image. The image is being uploaded to the uploads folder and appears in the media library with ...
0
votes
0answers
21 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 ...
-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
26 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 ...
0
votes
3answers
213 views

Full width images within post content

The content of the post is contained in a div which is centred in the page and thus any images in the post would be constrained to the width of that div.The image below illustrates what I would like ...
1
vote
3answers
3k views

How to add a random image to a post from gallery and only show one?

I know how to add an image and a gallery. I need to have one image from the galley show on the page at random each time the page is loaded. The page should only show one image at a time. Is there a ...
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
99 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 ...
4
votes
1answer
174 views

Watermarking Images with Wordpress with WP_Image_Editor

I really like the WP_Image_Editor class. I wanted to use it for some custom functionality I'm making, but I was wondering - Watermarking images - is there a way that I could use the objects created by ...
0
votes
0answers
40 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 ...
6
votes
5answers
9k views

Upload images to remote server

I am using Wordpress media uploader to upload images and I was wondering if there is a way to make it upload to my remote server instead of my local server? Example: My wordpress blog is hosted on ...
0
votes
1answer
27 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 ...
-3
votes
1answer
55 views

Uploading an image as featured image from frontend form

I have built a little form in a frontend page. I want user to create new post in a specific sort of post (listing). All fields are OK but only upload file is not working. Could you please tell me ...
0
votes
1answer
23 views

Trouble with Captioned Responsive Images

I'm trying to make a nice looking captioned image that is centered, responsive, and has a padded border around it. Here is my test page with the things I've tried: http://www.acneauthority.org/test1/...
7
votes
3answers
8k views

Image Upload from URL

I really like the way SE uploads an image from a URL (I'm sure many do!). I've been searching, but can't find, is there a plugin or a method similar to this available for WordPress? I know an image ...
0
votes
1answer
6k views

upload featured image from front end using wordpress add media button

I want to submit custom post from frontend. i have made form to make this happened. But i want to upload featured image form add media button of wordpress. Code is <?php /* Template Name: post ...
0
votes
0answers
16 views

Picture 404 error for all absolute images when moving off localhost?

I recently moved to a server for the first time away from localhost and after changing all of the localhost references in the database and wordpress project none of the pictures uploaded work that ...
0
votes
0answers
11 views

Cleaning up images in wordpress

I`m not technical but need to clean up "unused images" from wordpress (need more space) I checked unattached images but many of these images ARE being used in the form of a gallery or light-box ...
0
votes
3answers
232 views

Upload images using FTP and show them in media

Hello, This weekend one of my websites was hacked and all photos was removed (the folder uploads). That means the images in my site doesn't work. :( I had a backup of that folder and I have recovered ...
32
votes
4answers
22k views

Filter to remove image dimension attributes?

I'm working on a site based on a fluid width css template which sets a max-width on images to the width of the column containing them, and I need to remove the inline width and height dimension ...
0
votes
1answer
85 views

Different body image backgrounds on different pages, posts and categories

I am trying to implement the ability to choose a different body background image to different posts, pages and categories. I am using Advanced Custom Fields to add an image field to every post, page ...
0
votes
0answers
17 views

media_handle_upload adds unnecessary extra records in wp_posts

So I created a form to have a user create or edit a post: title, metadata and an image. I use this to update the title: $my_post = array( 'ID' => $post_id, 'post_title' => $...