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
11 views

Media upload error

I'm new in WP development. Suddenly I face upload error while media uploading. Even I also deactivated all plugins. Now I'm using WP latest version (4.1). After error msg the image is uploaded ...
1
vote
2answers
1k views

How to add qtranslate multi language support for media?

The multi language plugin qtranslate works for custom post types but there is no capability to translate media information like title, description, captions for images. I am using the following code ...
0
votes
2answers
2k views

Height and width attribute not setting by the_post_thumbnail

I am using following code to display images in home page: if ( has_post_thumbnail() ) {the_post_thumbnail('postbox-thumb') But the output of the above code does not have height and width of the img ...
0
votes
0answers
20 views

Change default URL of image attachment

I have only one image attachment per post, as featured image. Every post have just one image, featured image, and no any other image in post content. By default URL of image attachment is: ...
0
votes
1answer
14 views

Problem in using Customizer

Looking for some help with a customizer problem. I am using following codes to create a customizer which will allow me to upload an image for topic of the week section. owever, the following codes ...
1
vote
4answers
5k 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.
0
votes
1answer
18 views

Specify automatically the height and weight of the images

I just did a GTmetrix test for my website to check how it's going, and I noticed that I have many images without height & width size specified. So I start thinking about a Wordpress function that ...
0
votes
1answer
999 views

How to remove p tags around img and iframe tags in the acf wysiwyg field

I am querying an advanced custom fields wysiwyg field. Problem is in the output wordpress wraps occasional imgs and iframes with p tags no matter what i try. Deactivate the wpautop works remove_filter ...
0
votes
2answers
881 views

Get image post ID in media upload

I am developing a plugin that adds a Custom Post Type to my theme. It's a retail directory and the post type is a retail listing. Everything is working fine. I can upload content to the DB and then ...
2
votes
1answer
906 views

Allow user to manually set crop area of default/custom image sizes on upload [on hold]

I'm looking for a plugin that allows the user to define where the image will be cropped for a given thumbnail size. For example, the user uploads an image, a screen comes up with the image and a ...
8
votes
5answers
13k views

How do I get the avatar URL instead of an HTML IMG tag when using get_avatar?

I'm using a plugin called Simple Local Avatars which lets me upload author images which are stored on my server locally (no Gravatar). The plugin works fine and get_avatar returns the local avatar. ...
0
votes
2answers
24 views

Hide thumbnail if there is a gallery on the post

In a post I want to always show one of two options- If the post has nothing but a thumbnail image show the thumbnail. If the post has both the thumbnail and a gallery then show the only gallery ...
0
votes
1answer
8 views

Multiple post image, echo url (path of image)

Currently I'm trying to create a large header (jumbotron) on my website. The large header is loaded as inline css with the following code: <div class="fill" style="background-image:url('<?php ...
1
vote
1answer
211 views

JavaScript and images files are not recognized

It might be the simplest question but I can't find why my JavaScript files and images are not recognized by WordPress. I put all my JS files and images in my theme's folder, so I created a folder ...
0
votes
1answer
20 views

Find only those galleries with images

Is there a way in WordPress to use WP_Query and retrieve posts/galleries that have more than 0 metavalues with the key _gallery_image_ids? Essentially I don't want to display galleries that have no ...
1
vote
0answers
9 views

Images uploaded to the media library has strange colors. However, in the edit screen the color is ok

This is a strange issue that I've never encountered before. When I upload this image to WordPress' media library, it comes out like this (image on the left): This is also how the image appears on ...
0
votes
0answers
4 views

migrate first image of every post into featured image

I have an existing WP 4.0.1 with around 150 posts. All of them start with an image embeded within the html body which looks like this: <h4><img class="aligncenter size-full wp-image-????" ...
0
votes
0answers
9 views

Create slider option in editor

In my website there is post thumbnail slider along with post featured image. Post thumbnail slider will show images related with blog post. I want when we write any post then it will allow me to ...
0
votes
1answer
37 views

Validate Uploaded Image using WordPress' Built-in Functions?

I have a form that allows users to upload an image. I'm using the code below (which currently doesn't work) to ensure what a user uploads is valid. Can someone help me out and either update my code ...
0
votes
2answers
683 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
0answers
7 views

How to add jQuery div element to each image on wp site?

I'm trying to add the "Share" button to each of the attachments inside of the post. I found function that allows to get all attachments on the post: ...
1
vote
2answers
1k views

Hide editor while keeping add media button in custom post type

How do I remove Editor in custom post type keeping the Add media button. When I used as following in custom post type declaration, it removes the Add Media button and I don't need editor in my post ...
0
votes
1answer
405 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
2answers
550 views

add_image_size() to crop images into squares?

So I know about setting custom images with add_image_size('name',X,Y,Crop?) which is cool but I need to build something that will crop images, regardless of their size, into squares. Basically, I ...
0
votes
1answer
656 views

How to pass on a value as parameter via url to another page

I'm dealing with a problem I can't solve myself. I did a few hours of research about it, but I didn't manage to make it work. I want to send a parameter via the url to the page I'm forwarding to and ...
4
votes
3answers
565 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' => ...
0
votes
2answers
8 views

Image filter works on attachement pages but not posts. I can't get the image ID

I'm using a plugin called Exifography. They provide the capability to use filters to adjust for your purposes. In the example provided I'm simply trying to get the height & width of the image and ...
0
votes
1answer
15 views

How can I use images that are on the server locally?

I will try to explain myself as best as possible: I have a live WordPress website which has over 600 posts and 1000 images used in these posts. I have a local copy running at ...
0
votes
2answers
45 views

get custom image size

In a post I want to place a custom image. how do i place a thumbnail with link to original image? below is my current code. <a ...
0
votes
1answer
277 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
2answers
30 views

Any way to edit/crop my featured image upon uploading?

I want to be able to upload a 1000 x 1000px image as a featured image on a post but then be able to crop it to the required featured image size. Any way to enable this?
0
votes
0answers
25 views

Can the new WP JSON API be used to get Recent Posts? [closed]

I am running Multisite and much to my disappointment I have been unable to find a suitable plugin or the like to get "Network Wide Recent Posts WITH Featured Images" it seems all the options are now ...
4
votes
1answer
745 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 ...
0
votes
0answers
9 views

Help change portfolio image gallery properties? theme abandoned suddenly :( [closed]

I'm so helping for some help - I had only a few things to do before launching and the theme creator seems to have gone dark. No content on the theme home page, the support forums or the ticketing ...
4
votes
4answers
3k views

What's the proper way to find and remove duplicate images from posts and the media library?

I just exported a largish WP blog from MediaTemple to PHPFog. I used the standard WordPress export and import plugins. For some unknown reason all of my media assets have been duplicated. I now have ...
0
votes
0answers
7 views

WordPress multisite Image not showing after moving to NGINX

Recently I moved my WordPress multisite Apache to NGINX server and after moving I see images are not loading. Image location like http://domain.com/files/2014/02/cfnbanner.png My NGINX config ...
0
votes
1answer
275 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 ...
0
votes
2answers
582 views

Display ajax preloader for large images within posts

Our WordPress installation runs only images within posts. Generally medium, lightweight images but we are also publishing larger images, sometimes gif animations which take enormous time to load. ...
0
votes
5answers
869 views

Stop Images Linking to Themselves?

I have images on my website which I do not really want stolen, I have a no right click plugin which will help, and I would like to stop people clicking on the image to display it on it's own in a ...
1
vote
1answer
890 views

Custom Image Thumbnails of Different Sizes

I have a Custom Post Type which contains custom fields for uploading images of different types for a portfolio site. For example: (logos, websites, print-ads, etc...). I plan on uploading images of ...
0
votes
0answers
15 views

Image gallery with load more option

I want to create a photo gallery in my site. I will have several categories(or albums). The main thing I want is a load more button at the bottom of a gallery. Let's say in a gallery there are 30 ...
0
votes
1answer
273 views

Upload unnattached image from frontend

I am using the below function to let users upload files from the front end. It works great except that I would like the file to NOT be attached to any post. Currently, the file is automatically ...
4
votes
3answers
722 views

How might I retrieve a featured post image from an external WP site and display it as a link back?

I have two WP sites. I want to reach from one of them, into the other, and retrieve specific featured images for posts, and display them with a link to that post. I am using this line (with the ...
0
votes
2answers
715 views

How Do I Add Images To Main Navigation Menu

I have a navigation menu but I need to be able to have background images with multiple states. There would be a background image for the multiple link states: normal, hover, and current. What is the ...
0
votes
0answers
12 views

How to get image on the front page in every post?

I have a problem on my website. The thing is on my main website page i am unable to see any image that i have inserted to that post. So basically the post on the main page should be seen as title of ...
1
vote
1answer
41 views

Thumbnails produce unwanted gray pixels on white background [closed]

Is there a workaround for producing QUALITY "Featured Image" thumbnails of different sizes? WordPress produces compressed thumbnails that contain grey pixels where it should be a completely white ...
0
votes
0answers
31 views

Add custom field to edit media WP 4.0.1

I try to add a custom field for media edit from WYSIWYG. But the attachment_fields_to_edit filter does not add the field on the edit popup. When you click on a image and then click on the edit icon. ...
1
vote
1answer
45 views

Generate image size, based on the image-orientation

I am working on a fairly complex redesign of a wordpress project. Currently I am working on the image implementation. The site is very image heavy and I want to provide the optimal image for each ...
0
votes
2answers
15 views

add titles to images in ad media in pages and posts

When editing pages or posts you can press the add media button. This shows a grid of all your images but it does not display the image names. I have lots of similar images and I would like a image ...
0
votes
1answer
260 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 ...