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)

6
votes
1answer
84 views
+50

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
2answers
544 views

Removing height and width from images with a caption

I am using WordPress with Twitter Bootstrap 3 and have an issue when it comes to images with captions. Images with captions are given a height and width attribute which stops them from being ...
0
votes
1answer
13 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 = ...
5
votes
2answers
1k views

Add custom Attachment Display Setting for images

I've been doing a lot of research and I've yet to work this out. Can you add in a custom option in the Attachment Display Settings (part of Insert Media dialog in post editor)? What I'm after is the ...
1
vote
1answer
19 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 ...
1
vote
1answer
401 views

Remove inline width from figure

I add an image with caption to my page and need to increase <figure> width. But wordpress is adding an inline width. [caption id="attachment_44" align="alignnone" width="216"]<a href="image ...
15
votes
6answers
4k 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
2answers
461 views

upload images on front by user using form

I'm using a form on my website using wordpress to allow users to create posts. It works perfectly fine, I'm abble to assign the posts to a custom post type, add Advanced Custom Fields, content, ...
0
votes
1answer
398 views

getting attachement images src and add classes

I have posts whose each contains 4 attached images. what i'm trying to do in my single.php is to get all the 4 images src to be abble to add different classes to each images. <img class="image_1 ...
0
votes
3answers
2k views

Why can I not view image attachment pages?

I have a problem with images. I can see my uploaded images, as previously, through the media library. I can access each image by clicking on "edit". But if I then click on "View Attachment Page", I ...
0
votes
0answers
215 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
11 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
7 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 ...
0
votes
1answer
677 views

Changing logo image in header.php upon language detection

So i'm designing a website that will feature the Polylang plugin for automatic language detection, but I've run into a bit of a wall with the logo image. It resides in header.php, but I can't think of ...
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 ...
1
vote
1answer
26 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
27 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
1answer
794 views

How to remove “Image Information” and “post date/author” from a media page?

I'm trying to use Wordpress to setup a simple website for my business, and I'm having issues with the gallery page. Once an image is clicked and brought to it's specific page, it includes author and ...
0
votes
1answer
782 views

How to get cropped thumbnail source for custom post type

I need thumbnail image url with size 148*148px. I using custom post type for testimonials. I need just the image source like http://example.com/demoimage.jpg. It is possible to get cropped image ...
0
votes
4answers
1k views

After moving a site to another domain, all images are lost

I moved from www.domain1.com to www.domain2.com Trouble is the image paths left looking at www.domain1.com/wp-content/uploads... So when www.domain1.com went down all my images are now lost. I ...
0
votes
0answers
17 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
14 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
13 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
433 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
20 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
425 views

Trying to set specific image dimensions and crop with ACF

My question is about image sizing. I get how to the sizing/cropping stuff natively in WP add_image_size( 'thumb-crazy', 500,500, true); And then in the template type: if ( has_post_thumbnail() ) { ...
1
vote
1answer
601 views

Automatically Add Caption in image

I want to automatically add caption for each picture appears in the name of the image or the alternative text example Caption add automatic
0
votes
1answer
31 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 ...
0
votes
0answers
21 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
419 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
17 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 ...
0
votes
1answer
619 views

Site migration - some images not displaying in Media Library

After migrating a site from the live server to my test server (different URL), some of the images (not all) are not displaying. The src is correct, image is in the uploads folder, and everything ...
5
votes
2answers
631 views

Auto Add Image Title,Caption,Alt Text,Description while uploading Images in WordPress

Can anyone tell me how to auto fill/add same image title in title, caption, alt text and description while uploading any image in my WordPress Posts.
4
votes
3answers
675 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' => ...
2
votes
0answers
23 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 ...
0
votes
1answer
759 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
1answer
664 views

How to insert image path in database to display product image in wp-admin?

In which database table and column do I need to insert an image path, in order to display product images in wp-admin (not on the front end)? I insert products by query in WordPress, rather than insert ...
1
vote
1answer
22 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
votes
0answers
23 views

Cannot Vertically Align Images In WooCommerce [closed]

I'm making an eCommerce site on Wordpress using WooCommerce. I have many images that will have varying heights and I would like them to be aligned vertically when displayed. Using several top search ...
0
votes
1answer
407 views

Wordpress creates unused (unregistered) image sizes

I have a news blog created on WordPress. I've set up WordPress to create 3 resized versions of images when uploading them. 315x215(featured image with cropping option enabled) 620x (to create images ...
1
vote
0answers
12 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
21 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 ...
0
votes
2answers
3k views

Some images not found 404 in localhost

I just transferred a WordPress installation from the domain to my localhost. I did all the usual steps: copy files, export DB and replace domain.com with localhost, update wp-config.php and refresh ...
1
vote
2answers
2k 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
1answer
511 views

How can I get url from image tag in feed with fetch_feed?

I used this piece of code in functions.php to add featured image in <image> tag in feed add_action('rss2_item', 'add_my_rss_node'); function add_my_rss_node() { global $post; ...
0
votes
0answers
27 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
399 views

Insert image in comment reply

I have searched everywhere but can not find a plugin that allows users to upload an image into their Reply to a comment. It is a photographic blog so has to have this ability. I did try a couple but ...