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

Changing logo image in header.php upon language detection

So i'm designing a website that will feature the Polylang plugin for automatic language detection, but I've run into a bit of a wall with the logo image. It resides in header.php, but I can't think of ...
0
votes
0answers
9 views

Image slide not appearing on website

Images not displaying on my site only [nivoslider id=”676″] is shown What would I need to do in order for the images to show?
0
votes
2answers
22 views

Adding featured image messes up page layout

I got someone to design the wordpress side of my site and now I need to try to understand what they did and would be grateful for advice.I have a Page that shows sections and stages (which are ...
0
votes
1answer
13 views

How to replace all images in all posts and pages with a different size?

I'm about to reboot an old blog of mine and therefor I'm creating a new theme from scratch. Before I'd align pictures left and right, because it seemed good. But now I want to make it much cleaner and ...
0
votes
0answers
11 views

wp_get_attachment_image_src() regenerate custom size images everytime

i try to make simple gallery from post's attachment images with custom sizes. i wrote simple loop: $original = array(); $gallery = array(); $gallery_min = array(); $imgs_args = array( ...
0
votes
1answer
19 views

Generate image for newly added size

I have added a new image size to a wordpress site with lots of images already present with all their thumbnails. Is there a way to do this: given the post using a specific image, get the attachment ...
2
votes
9answers
478 views

Graphing libraries for WordPress [closed]

I had asked question like this long ago at WPTavern and it fizzled. Hope it fares better this time. :) Drawing graphs can be done with multiple methods (generating image files, JS, Flash) and there ...
6
votes
2answers
151 views

Generate Thumbnails only for Featured Images

I would like to know if there is a simple way (custom code or plugin) to create thumbnail sizes only for images that I intend to use as featured images (index.php, archive.php, etc.) , but not for the ...
0
votes
1answer
10 views

How to show images uncropped after uploading?

As you can see, I've uploaded an image of book. Whenever I upload images, wordpress seems to crop it all the time. Is there a plugin or a code I can put to where it will show the whole picture ...
0
votes
0answers
7 views

Anomaly with response coming from XML RPC Api get Post (integer out of range)

I am getting the following xml snippet back from a getPost call... <member> <name>image_meta</name> <value> <struct> <member> ...
0
votes
0answers
18 views

Show image EXIF info

I am working on image gallery site. On test site (which is on shared hosting) I created and tested theme and plugins. I know that WP store some extra info about image during image upload (EXIF/IPTC ...
0
votes
0answers
4 views

Only i can see that the images are missing, but other user see them just fine showing

Im using the newest version of the newspaper theme. I’m also using the Wp smush pro picture size reducing plugin Can you help me on a very odd problem. Only on my computer and also when the article ...
0
votes
1answer
456 views

Disabling auto-resizing of uploaded images

Whenever I upload a large image, it gets resized to the width of the post. This will be a negative feature for comic reading sites. I need to display the full width images, which I can resize when I ...
0
votes
1answer
374 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
9
votes
6answers
16k 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
0answers
18 views

Removing default alt text autofill or overriding it

What I'm trying to do is check if the user has entered the alt text for an image, and if not, then add alt text containing the post title to the image. I found a function that does this here: ...
1
vote
3answers
77 views

Responsive Images

Is there a native function to display the correct responsive image size for post thumbnails or gallery images depending on the screen resolution? Normally I'm using: 1.Custom image sizes: function ...
2
votes
2answers
1k views

Automatically replace original uploaded image with large image size

As our users regularly upload ~6MB images to use on the website (and aren't too familiar with how to resize them first), WordPress stores the originals as well as resizing them to several different ...
25
votes
9answers
12k views

Restricting Users to View Only Media Library Items They Have Uploaded?

I want users to be able to upload photos using add_cap('upload_files') but in their profile page, the Media Library shows every image that's been uploaded. How can I filter that so that they can only ...
1
vote
1answer
26 views

Get Attachment ID from URL [duplicate]

I have the URL of an image which I know is an attachment. Now, I need to find out the attachment ID. This is what I've got (thanks to PippinsPlugins): // retrieves the attachment ID from the file ...
0
votes
1answer
12 views

Images not showing on homepage after migration [duplicate]

I have a website with one section not displaying images after migration, the src attribute returns empty urls, the site is intpro.co.zw and the section im referring to is on Latest Properties What ...
0
votes
0answers
22 views

Featured image on page set as “Posts page” in Settings > Reading

Settings > Reading is set to "Actualites", which is a static page I created that uses index.php as template. In it, the_post_thumbnail() doesn't work (although I set a featured image in my ...
0
votes
1answer
410 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 ...
-1
votes
1answer
44 views

If image width bigger than height [duplicate]

I'm making new theme with bootstrap, and having little trouble setting up content. Firstly content is set up like this: <div class="row"> <div class="col-sm-12"> <?php ...
-2
votes
0answers
18 views

Adding Non-Hyperlinkable Images [closed]

Link: http://demo.cactusthemes.com/university/online-training-courses/ Q): Is the image (Laptop and other stuffs on the right) part of the theme or they are custom added assets/images. How do I add ...
1
vote
1answer
118 views

Understanding and altering the structure of posted images

Currently this is the (default) Wordpress image output: Float left, with caption, link to img <figure id="attachment_10220" style="width: 167px;" class="wp-caption alignleft"> <a ...
2
votes
1answer
2k views

How do I delete all UNUSED images from my uploads directory?

I am trying to clean out my uploads folders as they are now starting to take up too much room on my server. I have tried to use plugins to achieve this end such as DNUI and Cleanup Images but these ...
5
votes
1answer
147 views

How to change image type for specific size?

I am optimizing a site with large (dozens) quantity of images on page in a grid. For retina support the images are also need to be 2x sized. The low hanging fruit was to make sure the thumbnail sizes ...
0
votes
1answer
1k views

Some images not found 404 in localhost

I just transferred a WordPress installation from the domain to my localhost. I did all the usual steps: copy files, export DB and replace domain.com with localhost, update wp-config.php and refresh ...
3
votes
4answers
1k views

Overide Gallery Default Link to Settings

Is there way to control the gallery default “Link to” setting? Using the image_default_link_type filter within a functions.php file works on inserting single images into posts but it doesn't seem to ...
1
vote
1answer
352 views

All links to images are broken in a subdomain multi site environment

I've just installed a fresh copy of Wordpress 3.8.1, and then enabled the network feature using sub-domains. In cPanel, I have the wildcard sub-domain pointing to the Wordpress folder, and Wordpress ...
0
votes
2answers
439 views

How to change the order of elements within a post?

I have a site with several thousand posts. They all have just a single attached image of varying size. All posts are displayed in full (no thumbnail view). I'd like to be able to change the way the ...
4
votes
3answers
601 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
0answers
6 views

Cannot upload any image into wordpress after changing from multisite to single site

I have recently changed a site from multisite to single site by changing and commenting the parameters in the wp-config.php. After doing so I cannot upload any file into the media library. The upload ...
0
votes
2answers
1k 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 ...
0
votes
0answers
4 views

Custom Image Sizing in Content Editor Uses Small Image

I'm trying to use the custom image size option in the Add Media part of the Content Editor, and when I do, it uses the Medium image as the base for the resizing, which results in blurry images if the ...
0
votes
2answers
29 views

Time Based change of image

Could someone please point me in the right direction, im currently using : <?php if (get_the_time('H') >= 8 && get_the_time('H') < 20) : ?> <img src="<?php echo ...
1
vote
1answer
374 views

Auto Add Image Title,Caption,Alt Text,Description while uploading Images in WordPress

Can anyone tell me how to auto fill/add same image title in title, caption, alt text and description while uploading any image in my WordPress Posts.
0
votes
1answer
21 views

using media_sideload_image with a file from theme directory

I'm building a Wordpress site in which an admin can upload a video file from post metabox. After that post is saved and the video file is attached to the post, I used ffmpeg to get the screenshot at ...
1
vote
1answer
307 views

Process uploads with phpThumb before generating thumbnails

I was wondering if anyone knew a way (via function, plugin, or another method) of using phpThumb to process an image on upload, and then for Wordpress to generate it's usual image sizes from both the ...
-1
votes
0answers
17 views

How do I add testimonial image to testimonial widget for Spacious theme?

I have a website with the Spacious Wordpress them installed on it. The website is www.PlanetReputation.com. At the bottom of the homepage you can see some testimonials that I have added using the ...
0
votes
0answers
5 views

Image URL Recently became Image Name and Took Page URL of Same Name

With a recent update to either wordpress, my theme or the Yoast plugin, we realized that any image with the same name as a page on our site has taken over the URL of the page. When we build out the ...
0
votes
0answers
11 views

How to pick up featured image from set of pictures

I'm trying to create front end form for posting. The following questions are concerning me so bad. How can I set a featured image? I tried set_post_thumbnail($pid, $newuploadid); but nothing happend. ...
0
votes
0answers
9 views

Images not loading after removing “Smushit”

Images in my WordPress website are not loading. This started to happen since I removed "yahoo's smushit plugin" (it does image compression) because it's not available for free anymore. I can still ...
0
votes
1answer
260 views

HTTP error when uploading an image

I know there are already a few posts on this issue, but unfortunately none of those answers were helpful to me. Every time I upload an image, I get an HTTP Error - that's it. Nothing more, no ...
0
votes
1answer
28 views

Exclude image url from search query

I have a question today. I have recently completed a website and there is search box integrated. And, I have a post which has an attachment(attachment's url is www.sample.com/image/sampleimage.jpg) ...
0
votes
0answers
9 views

How do I add padding to the p tags containing text, but not the ones containing images?

I want images within a post to span the full width of .entry-content, but WordPress puts p tags around them. Paragraphs have padding: 15px. <div class="entry-content"> <p><img ...
0
votes
1answer
639 views

Uploaded image not appearing in custom post type

I am writing a plugin which should allow users to create a custom post type called reseller and attach an image. The image is being uploaded to the uploads folder and appears in the media library with ...
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
10 views

Wordpress gallery previous/next buttons showing all media library images

I have just noticed that on my installation of wordpress, within the gallery image pages, the previous/next buttons are browsing through my entire media library rather than just those images that are ...