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)

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 ...
1
vote
0answers
77 views

Change logo based on incoming domain

The agency I work for are trying to get a client's logo to change based upon the incoming URL. Now, we have 4 different URLs, therefore 4 different logos. Currently, we are using an if/else ...
6
votes
2answers
256 views

Remove Dimension from wp_get_attachment_image

I am having some issue removing the width and height from my attachment images when using wp_get_attachment_image. This is what I am using to display the image <?php echo $image = ...
1
vote
0answers
27 views

Woocommerce Storefront WordPress Ignore Media Gallery Images and use External 3rd Party Host

OK, firstly we have done this before using Magento and it worked well, but with WordPress? Well, here is the problem and the plan... The Problem For a few reasons we wish to use a 3rd Party host for ...
3
votes
1answer
97 views

Featured image shortcode

Each post currently requires the featured image to be duplicated within the post several times. Is there any way in which I could dynamically call the featured image back into the post rather than ...
1
vote
0answers
13 views

How To Add buttons to the toolbar which appears in TinyMce when you click over images

Using Wordpress 4.4 I need to add a custom button to manipulate images. The button should appear when the user clicks on an image, next to other buttons. An example of the other buttons:
0
votes
0answers
23 views

Edit PHP / “Categories Images” Plugin

I need to upload YouTube videos to one of the folders/categories using "Categories Images" plugin. I know it is designed to create a gallery of images only, but with the way the website is structured, ...
0
votes
0answers
20 views

Automatic Animated Gif Resizing Support

I'm trying to find a way to support animated gifs upload to my wordpress installation and automatically resize it without losing the original animation. I've read some threads about this, there is an ...
0
votes
2answers
24 views

Conflict with single and double quotes

This might be a very silly question but I am losing my hair over this.. So basically, I have the following line of code" 'Default' => '<img src="' . THEMEROOT . ...
0
votes
1answer
52 views

How do you clean a filename after image sideloading a url that contains `%20`?

Right now I'm creating a plugin to sideload images from an external source. The UI allows me to select files on the external server then downloads them via AJAX & media_sideload_image. ...
0
votes
2answers
33 views

How to modify images during upload

I'm developing a plugin, and, each time a user uploads an image in the media library, I'd like to modify metadata of this image. I have tried with the hook "wp_handle_upload_prefilter" but it seems ...
0
votes
0answers
43 views

Multisite wrong image paths front end

I'm working on a Wordpress multisite using subdomains. Everything with both sites working fine except for image paths on the second site. The images show fine and have correct paths in the media ...
5
votes
1answer
104 views

Add image size where largest possible proportional size is generated

I'd like to add an image size where the resulting image will be the largest possible size while retaining a 4:3 aspect ratio. Suppose I've added an image size like so: add_image_size( 'cover-image', ...
0
votes
0answers
34 views

Image rendering on mobile

I helped a friend with a template of a blog recently, and her readers have problems with image quality on mobile devices. Thing is, some are experiencing it, and some not. Is there any way I can fix ...
0
votes
1answer
64 views

How to get image URL from media_sideload_image?

I upload external images for media library using following way. $new_image_url = media_sideload_image($new_url, $post_ID, $title); This method return complete img src tag or 'src' for the image ...
1
vote
1answer
20 views

how can I put an image in a post with original size

whenever I put an image into a post, it always appears in smaller size than original, only after clicking on the image it opens in full size, how can I manage to post original size images in post?
0
votes
0answers
17 views

Multiple Images from a Featured Image (ie, additional product photos)

I need help coming up with a solution or even deciding if it is possible. I would like to provide multiple images (closeups) of a featured image (large one) as detail photos... without having to ...
1
vote
1answer
66 views

Error uploading images (but the images are at the server!)

I have a huge problem with images with a size greater 1MB in my website and I really need some help. If I try to upload an image with a size greater 1MB in my Media Library I get a generic error ...
0
votes
0answers
321 views

Uploaded images appear broken in WP 4.4

After upgrading to WordPress 4.4, any images we upload using Add Media appear as broken in the Media Library. We're using HTTP, not HTTPS. I have tried: Chmodding to 744 /wp-content/uploads/ and ...
7
votes
1answer
101 views

Prevent WordPress from adding image' title automatically

I wrote a plugin that set default title for all non-set (empty) titles and leaves the titles set manually (non-empty). The problem is when I upload new photos (to gallery), WordPress by default set ...
2
votes
1answer
37 views

WordPress is Inserting images into Post as HTTP and not HTTPS

I've logged into my site in HTTPS and I'm editing on a specific post. I've dragged an image to the edit window and am now inserting an image. The thing is WordPress is inserting the image as HTTP ...
1
vote
1answer
29 views

Replace image caption with its title and description

Is it possible to replace the caption text of an image with its title and description fields when inserting it in the editor? If so, how? Thanks in advance
1
vote
2answers
51 views

Set Post Image Using Shortcode

How can I set a post's featured image using the content of a shortcode? For instance, the following shortcode should set the post's featured image to the image at www.google.de/nicepic.jpg: ...
2
votes
1answer
47 views

Getting Images from theme's directory in pages

Yes, I know that we have get_template_directory_uri(); in referencing to the theme's directory. It's working when I put the following code inside index.php or in header.php: <img src="<?php ...
0
votes
2answers
45 views

Images showing in editor but not in post [closed]

Images are showing up in the editor, but not in the post. What's weird is that on initial page load, the images flash into existence and then disappear with a broken image icon. Here is an example ...
1
vote
2answers
345 views

Fuzzy Images in Wordpress 4.4

I've got a problem with my site, newly uploaded images are uploading/displaying blurry. I think this has to do with the 4.4 update and responsive images... how can I fix this, or disable responsive ...
1
vote
1answer
57 views

Show media-frame-menu on custom Media Frame

I have a plugin I built that adds a custom media frame with the following: media_frame = wp.media.frames.media_frame = wp.media({ title: 'Select your images', button: { text: 'Use Image' }, ...
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 ...
7
votes
2answers
1k views

WP 4.4. responsive images browser choosing the “wrong” one

I'm glad that WP 4.4. ships with a built-in responsive image feature. But I'm not that happy with it. I have set up some custom image sizes in my functions.php: add_image_size('post-thumbnails', ...
4
votes
1answer
226 views

WP 4.4 aspect ratio with responsive image

How to make new WP responsive image to choose images by filename and add them to srcset without checking aspect ratio? I have my own sizes: add_image_size( 'l', 992, 500, array( 'center', 'center' ) ...
0
votes
0answers
65 views

Disable Direct Access To Image Not Working

As my website is based on the product designing website, where the user will design printing products and they can buy in my website, So i almost protected the image in all the ways, like layer over ...
0
votes
1answer
144 views

Image thumbnail on single product issue | WooCommerce

I have a premium theme called "Labomba" and been playing around with it for quite some time as I'm building it for someone and now I'm reaching the end which I just need to sort out this issue. The ...
0
votes
1answer
58 views

Save Image in wp_options-Table

I'd like to save one image in my custom settings page. i.e. this image should be the logo which should get print to the pdf files I generate. Thats why I want to store the image (the image link) in ...
0
votes
0answers
19 views

Image upload on theme option page

I've found this script for adding some theme options in wordpress. add_action( 'admin_init', 'theme_options_init' ); add_action( 'admin_menu', 'theme_options_add_page' ); function ...
0
votes
0answers
46 views

Thickbox Opening IFrame instead of Featured Image

I am trying to open the featured image on the single post page in a WP Thickbox but it's opening the entire post in an IFrame. Here is my code: <?php if ( has_post_thumbnail()) : ?> ...
0
votes
1answer
18 views

How to best adjust images to a max content width of 490px?

On a large blog with thousands of images there are posts published by people who do not know much about image optimization. I am searching for a plugin or even a simple wp_content filter function in ...
0
votes
1answer
49 views

Can't get text to wrap around image

I'm trying to get the text to wrap around my image on my about page here http://www.biggerplay.com/about But as you can see the text just sits at the bottom of the image, how can I make it wrap ...
0
votes
1answer
55 views

Declare global variable that can be used on other function

I have AJAX image upload function where I can get attachment_id value. I want to save that as global variable and use it in different function that sets post thumbnail when it's exist. This is what I ...
3
votes
3answers
508 views

How do I exclude all images from a wp_query?

I want to query attachments and exclude all images. I can see how to include only images, using 'post_mime_type' => 'image/*', but I couldn't find any way of achieving the opposite. Is there any ...
0
votes
1answer
48 views

Get all images out of the posts content

I try to get all images out of the content-area of a post. I already tried this $imgs = get_posts(array( 'post_type' => 'attachment', 'post_per_page' => -1, 'post_parent' => ...
0
votes
0answers
14 views

Large image not showing dimensions

Why are the dimensions missing in the second screenshot? If I upload a 6MB image, it does not work, but if I upload a smaller 1MB image, the dimensions are showing. I am using the latest WordPress ...
0
votes
1answer
30 views

Adding a Class to an <img> Getting From Post Content

Can you please let me know how I can add a class to an image getting from Post Content? I have a page called promotion and it only contains an image which I uploaded through Add Media now in page I ...
0
votes
0answers
36 views

Image uploads but is blank in library (question mark thumbnail)

When I try to upload an image using the standard WordPress backend functionality, it uploads but shows up as a thumbnail with a question mark. Upon clicking on the thumbnail, I can see that WordPress ...
0
votes
0answers
11 views

WordPress Custom Widget Media Upload

OK I am not a programmer and after reading lots of tutorials I have managed to make one custom widget that just works with texts. Now in this code of mine I want to make a media uploader. Can anybody ...
1
vote
0answers
79 views

List all categories with featuread image from post?

With this code I show all categories: <?php $args = array( 'orderby' => 'name', 'parent' => 0 ); $categories = get_categories( $args ); foreach ( $categories as $category ) { echo ...
0
votes
1answer
40 views

How to test if there are no more previous or next image on attachment page?

I have a next_image_link and previous_image_link as a navigation on my image.php but I want the first and last image to echo greyed out text (disabled button) to show prev button and next button. ...
0
votes
0answers
74 views

Problem Cropping Images From WP Customizer

Getting the following error. There has been an error cropping your image. The issue happens only with this one theme, and only with the customizer. The cropped image is in the media directory, ...
0
votes
1answer
31 views

How to make my site use HTTPS for images or how to insert images as relative paths?

I recently added HTTPS to my domain and I have it so that http is redirected to https but my WordPress blog is still using http for it's images. I upload an image and it is using http. Is there ...
0
votes
0answers
88 views

Upload Multiple image attachments and save their IDs in custom meta fields from Front-End

Need some help on this one. I'm trying to upload multiple image attachments via Front-End and save their IDs in custom fields. Right now only the first image gets saved as custom field ...
0
votes
0answers
39 views

Upload image not working

I uploaded an image in wp-admin Media > Library. The image was saved as upload/2015/11/image.png, and is accessible from /wp-content/upload/2015/11/image.png, but it does not appear in Media > ...