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
13 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
0answers
6 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 ...
0
votes
2answers
21 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
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
8 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
33 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
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: ...
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
41 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
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
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 ...
0
votes
0answers
8 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 ...
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
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
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 ...
0
votes
0answers
29 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
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
17 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
10 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 ...
-1
votes
0answers
9 views

Wordpress Images issue [closed]

I have a issue with my wordpress my all images redirecting on a specific url domain.com/wp-content/uploads/abc.jpg to domain.com"domain.com/wp-content/uploads/abc.jpg" Can someone help me figure ...
-1
votes
0answers
14 views

Custom Featured Image / Thumbnails [closed]

my Problem is i create two custom Featured Image. it shows in the page i cant add it to an anchor tag. the_post_thumbnail code is for the original Featured image only right ? how can i get the custom ...
0
votes
0answers
15 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
39 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
27 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
44 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
37 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
32 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
1answer
152 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
26 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
11 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
29 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
34 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
23 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
79 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
8 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
15 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
33 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
8 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
35 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
14 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
37 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
56 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
34 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
52 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
16 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
48 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
39 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 ...