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
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
227 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 ...
30
votes
4answers
21k 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
78 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
14 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' => ...
1
vote
5answers
6k views

remove and disable image link in functions.php

Is there a way to disable image or thumbnail link URL, as well as remove existing image/thumbnail links in functions.php? NOT the setting under media as posted in this link, please.
1
vote
2answers
534 views

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 ...
3
votes
1answer
176 views

Drag images with caption in WP editor

Whenever I insert an image without a caption in the post, the editor makes it an object that I can select and move around / scale. Whenever I insert an image with a caption, it inserts fine. I can ...
10
votes
3answers
9k views

Masking wp-content/themes/name/images to just images directory using htaccess

I'm trying what I thought would be something really simple of masking my url but cannot seem to get it to work. I want to be able to link to images in my img tag without having to type in the full ...
-1
votes
1answer
21 views

Is there any SEO impacts on unattached vs attached images for a post in WordPress?

I usually bulk upload images to the WordPress Media Library and then add them add them in post, it remains unattached. Is there any specific SEO impacts on unattached vs attached images for a post? ...
12
votes
1answer
183 views

wp.media.view.ImageDetails - Save settings as HTML5 data-* attributes for image

What I finally want to achieve are extra settings added to the Image Details box, that will be stored in the image <img> tag as data-* attributes Example: <img src="..." ...
0
votes
1answer
142 views

How to show a manageable list of images on a post?

I've created a custom post type called product. On my theme's product page, I want to be able to show a basic list of images (ul>li>a>img) on a sidebar like this (quickly googled :P): I ...
-1
votes
1answer
49 views

How to force regenerate thumbnails in Wordpress posts?

We recently changed themes. The new theme uses different dimension thumbnails and I was a bonehead and deleted all previous thumbnail sizes. Deleting the thumbnail sizes results in many of the images ...
0
votes
1answer
77 views

srcset and custom field get_post_meta and wp_get_attachment_url

I would like to use the new wordpress 4.4 function srcset with an image which comes from a custom-field like this <img src="<?php $bigimg = get_post_meta($post->ID, 'bg_file', true); echo ...
0
votes
1answer
30 views

Can wp_get_image_editor convert to icon?

I have a very simple question regarding wp_get_image_editor (https://codex.wordpress.org/Class_Reference/WP_Image_Editor). I can crop, resize and save an image like this: $image = ...
1
vote
1answer
26 views

How to replace images?

I seem to have a problem with editing and replacing images in Wordpress. Do they automatically replace the image if it has the same file name or is a new file name(copy) always created? Also if I ...
22
votes
5answers
8k views

How do I disable responsive images in WP 4.4?

I succesfully converted my 4.3.1 install to all https. After updating to 4.4. I have a problem with the new srcset attribute. While the src attribute for images is set using https, the srcset ...
0
votes
0answers
231 views

Unable to Upload image via WordPress Media Manager

I have a WordPress 3.5.1 driven website. When trying to upload images via WordPress Media Manager, the below error is displayed: "xxx.jpg has failed to upload due to an error. The uploaded file ...
0
votes
2answers
31 views

Images not displayed when moving site to local

I set up a local environment to customize a friend's WP blog. However almost none of the images are being displayed. The remote site's URL is http://sitename.com and my local virtual host is ...
0
votes
0answers
23 views

Bulk change size-full to size-medium in all posts

Is there any way I could change image sizes in my posts? After migrating from Joomla, they are all in size-full and are very huge. I would like to change them into size-medium and pick the correct ...
1
vote
1answer
36 views

Is it possible to prevent users from uploading small images?

Is there a way to prompt an editor whenever they try to upload an image smaller than 350px width? Essentially rejecting any image uploads that are smaller than 350px width? Thanks
0
votes
2answers
3k views

Get uploaded image path in wordpress by filename

Can we get uploaded image path in wordpress by filename? Actually I know the way in PHP that will parse all files in the uploads folder, and matches the each file. But that way will produce high load ...
1
vote
0answers
448 views

Why isn't “background-image: url”working with Bootstrap carousel on WP?

When I made a Bootstrap carousel in plain HTML it was working just fine, but when I pasted the code into Wordpress the carousel is completely white. It's not a problem with the path because it will ...
0
votes
0answers
32 views

featured image rss feed in a category

I want to get the featured image in my RSS feed in a specific category. With the principal rss feed mywebsite.com/feed , I have no problem. Featured images are displaying. When I want to create a rss ...
0
votes
1answer
21 views

How to put images into theme from server folder (not from media library)

I'm trying to put image files into an images folder inside my theme, and display them on the page, but I'm getting the broken image icon. When I copy the file location from the server folder and try ...
0
votes
1answer
14 views

Images Wont Display After Importing From Old Wordpress

The images in my posts are not displaying, but when I click them, they display perfectly fine. It seems like the issue is the actual image is: ...
0
votes
1answer
2k views

Display thumbnail from custom field

I have a custom field called picture. On the media settings page I've set thumbnail size to 100x100. If upload an image called gecko.jpg, WordPress automatically resizes it and generates ...
1
vote
1answer
451 views

How to display images in related posts?

I want to display an image for each related post. Note, these are inline images, not from post thumbnails. What I need is: If the post has an only image, show it. If it has multiple images, show ...
0
votes
1answer
61 views

How to display alt tags in img src?

I'm working off a custom theme which they entirely left out including the alt tag in the img source. Here is an example of the code: <img src="<?php echo get_field('image')['sizes']['large']; ...
0
votes
1answer
74 views

wordpress images not showing properly

Images are not visible properly in the media library after caching them from my other website. The featured image is also not being set. However the images are showing up on the front end of the ...
1
vote
0answers
28 views

Using custom image resizing script in a page

I am using the aqua-resizer to create custom image sizes and cropping. However, I am also using a theme with a built-in page editor and module-based layout. I am able to get the aqua-resizer script ...
2
votes
2answers
441 views

Is there a shortcut to change bulk BMP images to JPG images in a site?

Images in WordPress posts, as I understand, are uploaded manually. They are uploaded by default to uploads folder. A client of mine reported that, in one of his site, he uploaded all the images in BMP ...
2
votes
2answers
6k views

Images not showing after moving site (but path id OK)

I moved (actually copied) a WordPress site (http://inglesen100dias.com/) to a new server and domain (http://blog.inglesen100dias.com/). I followed the process described on Wordpress' website and also ...
1
vote
0answers
27 views

automatically set “Featured Image” the same as the og:i that is set in a custom field

I currently have a site that uses the "custom fields" feature to set the value of the meta property="og:image" for each post. All of my og:images are stored on an external server. I'm looking for a ...
4
votes
3answers
683 views

List most recent image uploads, but only for specific custom post type

I can get a list of the most recent image attachments like so: $attachments = get_posts( array( 'post_type' => 'attachment', 'posts_per_page' => $number, 'post_mime_type' => ...
3
votes
0answers
41 views

Pb with responsive image sizes in WP 4.4

I don't understand how to customize responsive sizes images in WP 4.4.1. The only available hooks that I see are wp_calculate_image_srcset and wp_calculate_image_sizes, and neither has the named ...
1
vote
1answer
36 views

Why would image paths in wordpress suddenly change?

I'm using the Everglades WP theme, and have had no issues until suddenly I found all the images have different paths in the browser. Where they are: ...
1
vote
0answers
15 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
38 views

Limit dimensions of “Full” size images

Is there a way to limit the dimensions of the full size uploaded image (made normally through the Media library)? I have clients that upload huge images files with resolutions sometimes greater than ...
1
vote
2answers
3k views

How to remove images from showing in a post with the_content()?

Trying to learn more about creating my own themes and not using any plugins I wanted an ability to display all the images in a post excluding the thumbnail in my single-foobar.php file and I can do ...
0
votes
0answers
38 views

Compression of original picture during upload?

WordPress compress scaled thumbnails of image during upload, but, original image will be is same quality. I am trying to compress original image too. I wish to make image in original resolution ...
0
votes
1answer
60 views

get_post_meta returning broken path in image src

I am using a custom field to store the path to an image and then using get_post_meta() to insert that path into an <img> Here is my code: <img src"<?php echo get_post_meta( get_the_ID(), ...
0
votes
0answers
12 views

Media settings image sizes ignored in attachment display settings when uploading image

I know this question has been asked before here; Settings in 'Media > Settings' is ignored when inserting images I tried all suggestions and none of them work for me. I've set the image ...
0
votes
1answer
80 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
0answers
16 views

Web User Selects Image Category

I'm trying to build a website in wordpress where the user of the webpage can select an image category that they want to see (e.g. all images of boats). The user will have a dropdown list or some other ...
0
votes
0answers
18 views

How to require value for Alt attribute for an uploaded image?

When a user adds an image via the Add/Insert Media dialog I'd like to require the Alt Text field not be empty. Ideally, disable the [Insert Into Post] button and send some type of alert that the Alt ...
0
votes
1answer
74 views

Adding Static Image to WooCommerce Content-Single-Product template

I am trying to add some static images to the single product template in WooCommerce but they are not displaying properly. I am hooking into the woocommerce_after_single_product_summary hook and ...
4
votes
1answer
164 views

WP 4.4. responsive loads normal image after loading the responsive image

I have the 2 new added sized that I am testing: // testing add_image_size('new-small', 500, false); add_image_size('medium-large', 768, false); // just added today for devices support image ...