Tagged Questions

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
7 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
23 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
16 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 ...
0
votes
2answers
35 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
12 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
24 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
0answers
6 views

How to add a graphic next to the logo? [closed]

I built a wordpress page with the following header: <header id="masthead" class="site-header header-centered" role="banner"> <div class="row"> <div class="large-12 columns"> <div ...
0
votes
1answer
118 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
11 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
26 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
32 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
11 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
26 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
6 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
14 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 ...
-2
votes
0answers
7 views

Nofollow wordpress images [duplicate]

When we add media(images) in the default wordpress theme. I want to change the tag which which is used before the img and after the img. I want to add “ rel='nofollow' “ attribute to ahref tag.Like ...
0
votes
1answer
29 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
7 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
30 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
-2
votes
0answers
8 views

How to have users upload photos and then site show most popular photo of the week?

Title says it all. How to have my users upload their own photos to the website... so then I can have a Most Photo of the week/day in the sidebar (generated by the site) ?
0
votes
0answers
12 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
23 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
37 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
16 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
22 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
15 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
32 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
28 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
32 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
24 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
15 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
31 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
62 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: ...
1
vote
0answers
35 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
34 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 ...
-1
votes
0answers
32 views

Function to remove all classes on images [on hold]

I need to remove css style by the_content single.php Example single.php img src="http//image1" alt="" class="mycss" /> (remove alignnone size-medium wp-image-51) img src="http://image2" alt="" ...
0
votes
0answers
26 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
18 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 ...
-2
votes
1answer
46 views

Adding social share buttons for individual images on a web page

I am looking for a way to add social share buttons (Facebook, Twitter and Pintrest) for all individual images on a given web page. Here is an example: ...
0
votes
1answer
40 views

How To Delete Desired Image Sizes From wp-content/uploads?

My default media setting in WordPress blog is 150x150, 300x300, 1024x1024 respectively for thumbnail, medium, large images. Now I am designing a theme that need different size thumbnail images to show ...
0
votes
0answers
12 views

Display all 'uploaded to' images for a page/post in 'edit' admin area

I'm using the Frontend Uploader plugin in order to allow people to allow images to posts. This allows images to be 'attached' to posts. I can display a gallery of all attached images on the frontend ...
0
votes
2answers
20 views

Getting thumbnail of uploaded image

I want to get a 'smaller' thumbnail of a large image I have uploaded through the built in word-press media up-loader. I have briefly looked at get_the_post_thumbnail but I don't think that is the ...
0
votes
0answers
18 views

Thumbnails produce unwanted gray pixels on white background

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
1answer
51 views

How To Pick Custom Size Of Uploaded Image In Theme Via the_post_thumbnail();?

I am designing a magazine style theme and I want different image sizes as to show on index.php page. Now for this, I am using <?php the_post_thumbnail( array(100, 100) );?> but it is picking ...
-1
votes
1answer
20 views

Featured Image not displaying [closed]

I upload a photo for a featured image in about page but this featured image is not displaying. What's the problem on that? My site http://goo.gl/hsN9TE
0
votes
0answers
24 views

Serving images from a subdomain: image upload not working and no error given

I have a two stage Capistrano setup using Wp-Stacks. I would like to have a common image upload directory for them, since the image dir is 2GB, don't want to duplicate that. I'm trying to serve ...
0
votes
1answer
22 views

How do you cite the images on your blog? [closed]

I just created a blog through wordpress and there was a background that I used from http://subtlepatterns.com/ I also used two other images...so I'm just wondering, do I need to cite these images in ...
0
votes
0answers
12 views

Restrict featured image uploaded to current post

How to restrict featured image to image uploaded to current post only? I wish to hide all images from media when choosing image for featured image, and wish to have just option to upload new image and ...
1
vote
1answer
39 views

Post slugs and images cannot have same name?

If I go to Media Library and upload an image called apple-pie.jpg And then I create a post called www.domain.com/apple-pie/ The link does NOT take me to the post. Instead the link will take me to a ...