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
0answers
45 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
363 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
0answers
134 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
0answers
129 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: ...
0
votes
1answer
30 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
144 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
2answers
24 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
2answers
41 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
67 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
0answers
181 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
0answers
19 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 ...
0
votes
0answers
86 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. ...
0
votes
2answers
21 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
48 views

how to open image gallery in a post/page?

I have created image gallery in a page using Add media. When i click on an image, it takes you to the attachment page but doesn't show the image clicked, instead it just shows the title of the image ...
0
votes
0answers
121 views

Adding 'add-background-image' button in wordpress visual editor

I want to add 'button' to the wordpress editor so that when one click on that button it should open the media library window of wordpress and on selecting the image and clicking on the insert button ...
0
votes
0answers
69 views

media_sideload_image uploads an image multiple times!

i want to upload an image programmatically into wordpress media library and then attach it to a post! i found media_sideload_image function in wordpress codex but when i use it in functions.php file, ...
0
votes
2answers
340 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
91 views

How do I create Comma Separated list of attached image ids?

I'm trying to grab the image id's of attached images to a post. I'm using an example posted here, but am having trouble returning the just the ids and not the entire array. My goal is to return a ...
1
vote
2answers
170 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 ...
0
votes
0answers
526 views

attach image from library to post with wp_insert_attachment

I am trying to attach some images, starting with one here for testing. It is already in the library. It seems to be trying to attach it to the post, I can see it in the media with the title of post ...
0
votes
1answer
157 views

Missing images after moving servers

I cloned an inherited WP Multisite and have got it up and running thanks to advice in a this and this previous questions. Things are moving along with the exception of images. Missing Images On ...
0
votes
2answers
354 views

Load Gallery Images with Title on Homepage BX Slider

I need to display all thumbnails of a gallery on the homepage using the Roots theme with links to one page with a shortcode. The gallery has to be loaded as list items using BX Slider's jQuery to ...
0
votes
0answers
193 views

show title attributes above gallery thumbnail

I'm using the wordpress gallery to generate a list of thumbnails each with captions. However i would also, on some occasions, like to add the ability to have individual titles for certain images. Im ...
0
votes
1answer
14 views

Content around featured image

any ideas how I can make this way: : http://f.cl.ly/items/41332V031Z1G2h0j0B33/example.jpg I have product image as featured image now. And I want to move text what is written in editor next to it. I ...
0
votes
1answer
53 views

Make featured image be shareable across multiple pages?

Basically I'm looking to share the same featured image across multiple sub pages under their respective primary page. Is there any plugin that lets me do this, so they can inherit a featured image?
1
vote
1answer
36 views

Problem with images when no dimension in the URL [closed]

I have a problem on my site that when I open an image's direct link it goes to 404 page. Here: http://byrnecoatings.com/wp-content/uploads/2014/09/20140710_144125.jpg With the dimensions it ...
0
votes
0answers
182 views

How to add a separate featured image tag in a RSS feed?

I figured how to add a featured image into the RSS feed. I used this following code in my themes's function.php file function featured_image_in_rss($content) { // Global $post variable ...
0
votes
2answers
671 views

Modifying an uploaded image with 'wp_get_image_editor' and 'wp_handle_upload_prefilter'

I'm trying to intercept an image upload, resize it and then just let the upload continue. I'm using the filter wp_handle_upload_prefilter that passes as an argument a single file $FILES array. I ...
0
votes
0answers
16 views

Prevent Post Thumbnail from Loading Based on Image Width

I'm using a theme that presents excerpts on the homepage exactly how I like. The problem is that I have 100's of old posts with images that are too small for the custom image size in the excerpt loop. ...
0
votes
0answers
22 views

After Media Insert WP Automatically Scrolls Down (Unwanted)

This is really annoying, my WP pages have tons of images, and every time when I insert an image WP automatically scrolls down to where I can not see the source code of the just inserted image anymore ...
0
votes
1answer
83 views

I want to rel=nofollow wordpress images

I have a default theme. When i add media to wordpress site. By default it use simple "a href" tag I want to add attribute "rel=nofollow" to it. Can anybody please point me in right direction?.
0
votes
0answers
21 views

plugin or method for picture cropping of featured image

I need some advice what you guys find to be the best way, to let the user set a featured image with a specific aspect ratio. I want to guarantee that the image is filled in a div at the frontend with ...
1
vote
1answer
82 views

Change wp-content/uploads to uploads/%postname%/%image%

When uploading an image to a post, I want to change it so that it grabs the postname or post_id and places it in a folder like uploads/%postname%/ Is there a simple method of doing so? thanks
0
votes
0answers
32 views

Can't load images locally on Wordpress

"Sorry, this file type is not permitted for security reasons." This is the message when trying to load good files to my locally run wordpress site. I have checked on-line but have not found an answer ...
0
votes
2answers
774 views

Adding class to featured image

I have specified a loop to show featured images for my custom post type and wish to add a img-responsive class from bootstrap to my featured image. How can I do this? Thanks! Code: <div ...
0
votes
1answer
312 views

Why is wp_get_attachment_image_src returning wrong dimensions? [duplicate]

I am using wp_get_attachment_image_src to construct the srcset attribute of an img tag. In that attribute I want to output a comma separated list of image urls along with the image widths. Using the ...
0
votes
0answers
115 views

How to add automatic remove links/href from image for wordpress post

I have in the function.php own css style but I need to remove links automatic add_filter('the_content', 'add_image_responsive_class'); function add_image_responsive_class($content) { global ...
0
votes
1answer
1k views

Function to get URL of original uploaded image - full size

I am currently using the following code to get the URL of the featured image of a wordpress post: URL="<?php if (function_exists('wp_get_attachment_thumb_url')) {echo ...
1
vote
1answer
80 views

How to add an image for unit testing?

I have to test the function where it calls wp_get_attachment_image_src. How do I add an image for testing, because right now if I call this method it returns false.
1
vote
1answer
193 views

Override img class in gallery

I use Wordpress for AngularJS as backend (wp-json plugin ) and actually what I made as structure for the theme looks like myApptheme -style.css //nothing special here just inits the theme ...
0
votes
1answer
181 views

How can I automatically resize up images to fit into all of my registered image sizes

I need Wordpress to create versions of each image in ALL of the registered image size, even if the registered image size is larger than the uploaded file. For example, if I have the following ...
0
votes
1answer
332 views

How to rename an image attachment filename using php

I have the ID of the image uploaded and I need to rename it using php. (The reasons because I have to do it are difficult to explain and I think they are not even necessary for the purposes of this ...
-1
votes
1answer
54 views

how do i set an image for a category in admin panel

i want when create a category,choose an image for it in admin panel and my category page seem like below image:
0
votes
1answer
20 views

Where is this folder [closed]

I am very very new to wordpress. I had a company set things up for me and now I am broke...so I am trying to make changes on my own. I figured most stuff out, but I cannot find out how to access the ...
0
votes
1answer
216 views

Retrieve Image from Media Library by it's category

What I am needing to do here is get an image from the media library only by it's category. It won't be attached to a post, meaning that, the image will not be uploaded as a "featured image" of any ...
0
votes
1answer
119 views

HTTP Error when trying to upload image

I'm getting an HTTP error when trying to upload an image. The image is 6MB, yet I was able to upload a 10MB image just previously. I set the following, but they did not help: ...
2
votes
1answer
235 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
1answer
68 views

Replacing an Image gallery

I posted this on the regular stackexchange site, but then realized that there was a wordpress specific site, so I'm reposting it here. I am trying to create a gallery within a custom post type I have ...
0
votes
0answers
103 views

Different image heights for different resolutions without distortion

In Meta Slider for WP as in most sliders, the height is defined once and for all in dashboard. Sometimes though a full-width slider can look too thin on a mobile, but if you increase the height ...
0
votes
0answers
54 views

How can I bulk repair image file names and urls?

I have a site that has lots of images that unfortunately have non-ASCII characters in their names. I need to url-encode them and any links that point to them. Is there a way to do this in bulk? I ...