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)

21
votes
5answers
7k 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
205 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
52 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
124 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
48 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
39 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
44 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
47 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
501 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
46 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
12 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
29 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
32 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
10 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
66 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
36 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
65 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
29 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
71 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 > ...
0
votes
0answers
59 views

How to avoid Wordpress stripping EXIF metadata when resizing images?

Metadata is information about an image, and can be included in JPEG image files. EXIF metadata is information about the image recorded directly from the camera – for example, the exposure time and ...
0
votes
0answers
25 views

What is the best way to handle Ajax image upload on front end?

I have been searching around for awhile but haven't found a solution yet. For this question, I like to get some general answers or resources for implementing AJAX image upload in front-end form. ...
0
votes
1answer
12 views

Cant pull in featured Image

I have 6 posts with a featured image set for each. I have created a template file called portfolio-template.php. I have set the portfolio page to use that template file. Inside portfolio-template.php ...
0
votes
1answer
48 views

How To Query All Attachment Images Found In Post Galleries

I'm trying to create an image gallery which is comprised of all of the images attached to posts. The query below works well, but it ends up with all attached images rather than just the images ...
1
vote
2answers
38 views

Best practice for migration friendly images in posts/pages?

So I'm developing my sit in a WAMP environment with URL http://localhost:8080/wp1/ with the eventual plan to migrate it to live on the interwebs. I just noticed in my pages when I upload the images, ...
0
votes
2answers
44 views

Find unused images?

Is there a reliable up-to-date way to find media that resides on the server but is not used in the WP site? I have found a number of plugins, but all are very old, with lots of negative comments to ...
0
votes
0answers
73 views

Unrecognized image file after upload

I'm creating an iOS application using AFMultipartFormData AFNetworking to upload an image onto Wordpress site. On the Wordpress server side, the following data was received when I echoed $_FILES: ...
0
votes
0answers
17 views

Save & echo Image in Input - Admin seting page

in functions i have user code create fields get image url add_action('admin_menu', 'baw_create_menu'); function baw_create_menu() { add_menu_page('PH Plugin Settings', 'PH Settings', ...
1
vote
2answers
94 views

How to display a page's featured image?

I want to get the URL of a page's "featured image", as I want to use the page's featured image as the background image for the banner at the top of the page. The background image for the banner ...
0
votes
1answer
87 views

Need to echo category id in multi-dimensional array

I have custom post types and categories created with the Types plugin. I have category images allowed/created with the Categories Images plugin. I have a loop that displays the posts of a category ...
1
vote
1answer
69 views

Modify Image Source With The_Content Filter?

I'm very inexperienced with regex, however I'm trying to create a function that filters through the_content() and get_the_content() in order to modify the SRC of all images. The intended purpose ...
0
votes
0answers
70 views

Woocommerce new order admin email product thumbnails don't appear because of space character!

I would like to show the product thumbnails in Woocommerce new order admin emails. I have read some articles about how to do it and I changed the propriate line for this: ...
0
votes
1answer
27 views

1px black line appearing down right side of thumbnails (theme snaps) [closed]

For some reason on most of the thumbnails there is a black 1px line to the right of the image. This looks to be a cropping issue or something but there is a 1px thick line on the right hand side of a ...
0
votes
0answers
19 views

Resized Images get transparent for certain sizes

I am using Wordpress 4.3.1 with the Minamaze free theme. I changed the base URL and everything went fine, except for the images in the 3 featured areas in the home page, that - resized - become ...
0
votes
0answers
18 views

Featured Image with specific width or height in percentage

My site has the post featured images in the main page, but shows them cropped. What can I do to change it so it doesn't do the cropping and degrade the quality?
0
votes
1answer
35 views

Customizing individual images on posts

So I'm trying to customize the output of single image in my posts, adding custom divs and classes. I found a good tutorial online here - How to wrap every image in a post with a div? The function ...
0
votes
2answers
22 views

big trouble with javascript

I have some js scripts that are working on my site but I have found that some of the images are not showing up. I only have this issue with WordPress. So I have a pause button that shows as it's ...
0
votes
1answer
19 views

Is there a way to get attachment data?

So, I'm no big fan of how WP stores images (image data) and I was hoping there had been made some improvements in version 4.x. But alas no. When I say image data, I mean url, title, caption, alt ...
0
votes
0answers
110 views

Use URL query string in img src attribute

I'd like to display images of my custom fonts on my (private) WordPress site. The font-creation website I use, FontStruct, has a URL-accessed tool for rendering a line of text in a specific font. ...
0
votes
0answers
18 views

can a user be forced to enter alt text?

Is there a way to force a user to add alt text to an image? Something like, if they don't add alt text when they upload an image, a big red box will surround the alt text entry line?
0
votes
0answers
13 views

Zero size SVG in WP

I have enabled SVG image in WP according this recipe. Now I have problem during insert image from Media to site. It looks image appears with zero size and is not visible. How to fix this problem?
0
votes
2answers
145 views

Allow SVG in WP step by step

I'm not strong in WP programming, bu I try to understand what to do to enable SVG in my site. I found that in need to add function below to functions.php: /** * Add SVG capabilities */ function ...
0
votes
0answers
24 views

The same picture looks different in different WP sites with the same theme

I have pictre shown below that looks differently when I place it to different sites that are created on the same theme: In site No1 it looks normal, like in my question body: In site No2 ...
0
votes
2answers
140 views

convert post title to image

Im trying to convert the post title to an image. i created a php file in the theme folder image.php with the code UPDATE: working code require_once($_SERVER['DOCUMENT_ROOT'] . '/wp-load.php'); ...
0
votes
0answers
90 views

How to upload iPhone 6s photos using native WordPress app?

I used to have an iPhone 4s and used the WordPress app to upload photos to my blog. I just got a new iPhone 6s, and the camera has much better resolution. When I try to upload an image using the app, ...
0
votes
0answers
19 views

Attempting to add an imagemap/ content to Front Page — shows up only in meta description

I'm dealing with a nasty old theme for a friend that uses a huge slider as its homepage background image. I'd rather not scrap and recreate the site, as back in the day I put in a good amount of ...
0
votes
0answers
35 views

Custom Wordpress Frontend Image upload - add description as post_content?

I have a form with 3 image upload fields. The Upload works fine and the images are attached perfectly. Now there's the problem that I have had to add a description field into the form - one for each ...