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)

1
vote
1answer
201 views

Modifying the HTML Output of Inserted Images

I've used Wordpress for years. Whenever I would add an image to an article, I manually would write out all of the HTML for every image. I also used an image lightbox plugin called Highslide for people ...
0
votes
2answers
218 views

One picture belonging different galleries?

How can one picture belongs different galleries? For example, there are two galleries. I want to avoid loading the image twice (in two galleries) but it shown (included) in the first and second ...
1
vote
1answer
3k views

How to add image attachment to post from a single meta key (Woocommerce)

I'm using Woocommerce for products. All products are imported automatically by a plugin. Currently when i want to attach an image to a product (a post type) i have to use "Featured image" to display ...
1
vote
1answer
1k views

function to show only featured image of the posts

The problem is whenever I display a post containing gallery, it shows them all on front page same as within post. I want a function for posts on front page to display only the clickable featured image ...
4
votes
4answers
1k views

How to insert images into posts without using Add Media dialog

I want to simplify the process of inserting images when editing posts. In wordpress default, you have to click "Add Media" to show a popup dialog, upload images, choose from gallery.. it is too ...
1
vote
1answer
920 views

Is it possible to insert images directly from the server?

I've uploaded images directly to my WordPress server through FTP. I want to add these images to a post, so right now I'm using the Add from Server plugin that allows me to browse images on the server ...
0
votes
1answer
262 views

Conditional function for excluding first image from content, not working

I have the following function: function remove_images( $content ) { if( ( is_category() || is_archive() || is_home() ) && has_term( 'MyCat', 'category', $postID ) ) { $postOutput ...
0
votes
1answer
50 views

How to change picture size

How can I resize a picture I've already posted? I can click and drag the corner of the picture and it resizes the picture, but only horizontally, so the picture looks really squashed. I can also go ...
2
votes
2answers
5k views

How can I hide media library images from general users?

As an admin I really like the features and functionality of the WordPress 3.5 media manager. With a multi-user site however all users can see all images in the media library - whether uploaded by ...
1
vote
1answer
302 views

Can't remove Wordpress post image height/width attributes?

I know a few people have asked this question previously; however, I think something may have changed recently in the Wordpress update. I'm building my own responsive theme for my portfolio, and for ...
1
vote
2answers
1k views

Can't Display Featured Image in RSS Feed

I'm currently working on a test website on my local server using WordPress version 3.4.2. I've tried various different solutions. Some have included installing various plugins, such as WP RSS Images ...
0
votes
2answers
799 views

How to get image name, mime type, width, height, file size from post custom field?

What I need is some function to echo file name of image used in post like "image-file-name.jpg", or just "image-file-name". Also it would be great to be able to have even more information about image ...
3
votes
1answer
2k views

Which action hook can I use when a featured image has been selected

I have made a plugin for wordpress which copies the image to another directory when a post has been edit. But if you only upload another featured image and don't save the post. The image has been ...
11
votes
2answers
2k views

How can you set maximum width for original images?

Case: I have a client that doesn't know much about the digital world. However what she does know is how to get the photo's from her camera on to the computer and in WordPress. However she doesn't know ...
-2
votes
1answer
122 views

Why is inline CSS added to images automatically? [closed]

I have placed images on Wordpress page templates without any inline style attribute but it seem Wordpress automatically add style tag with width and height set to zero. <img ...
4
votes
3answers
8k views

How to get gallery images?

I have some images uploaded in wordpress posts (eg. post#1, and post#2). Now I've created a new post (eg. Post#3), and in this post I have inserted the WordPress 3.5 gallery, I did not upload any ...
2
votes
1answer
90 views

Image File Names

I've been poking around the Codex in hopes of finding out how WP renames image files when you upload them... it's probably there but I can't seem to find it. It seems that if I upload 1 file, like ...
0
votes
3answers
1k views

custom image size with New Media Manager in wordpress 3.5

The last update broke my workflow, as the method of using custom image size inside the media manager has definitely changed. i'm trying to add my previously registered image sizes to the new ...
1
vote
2answers
6k views

how to get path to images in the uploads folder to be used in a plugin

I have some folder with images in /wp-content/uploads. I also have a plugin file in /wp-content/plugins. I want to retrieve the images stored in /wp-content/uploads and use them in the plugin file. I ...
0
votes
1answer
2k views

How to Display an Image Uploaded through a Meta Box in a Template?

I am just learning to create a meta box to upload a file in wp-content/uploads folder through this code: //display image meta box function display_image_box() { global $post; wp_nonce_field( ...
0
votes
1answer
354 views

Upload image without media-upload

I've been looking a while and didnt found: How to create simple, old, good, upload via 'Browse' button and 'Dir' field that will upload and return image url. I dont want to use media-upload. Would ...
0
votes
2answers
124 views

Some images 404

I migrated our old blog to the same server in the main root. For some reason a couple of images won't load up any more even when they are in the /uploads/ folder. When going to them as a URL I'm ...
0
votes
1answer
561 views

Image display from custom field

I am trying to display image from my custom meta box but cant make it: function.php file: add_action( 'admin_init', 'order_box' ); function order_box() { add_meta_box( 'meta-box-id', 'My Custom ...
1
vote
0answers
43 views

Make change in media library affect images in published articles

Is there any way/plugin to make wordpress change the description/alt text/caption of an image used in already written articles if I change any of those texts of that specific image in the media ...
-1
votes
1answer
224 views

Convert all uploaded PNG files to PNG-8 format

Running a high trafficed platform. In my quest to minimise bandwidth costs, I added a high JPEG compression on all JPEG uploads (check solution in my previous question). However, Wordpress does not ...
1
vote
2answers
509 views

Change code to display image attachment page

I have this code which displays images with their captions in a list. On clicking caption, opens image in an attachment page, but clicking on image, opens that image with a dark-gray background. Is ...
1
vote
1answer
66 views

Show only posts with images and a fixed amount of posts

I found this code online. Its a code that only shows posts with images inside. Now, the problem is that if you set Wordpress to show 50 posts, this code shows the posts with the images, but also ...
0
votes
1answer
561 views

Cache issues with images not showing up

Images are there, but they don't always show up. Could this be a cache problem? Or Timbthumb? Here is an example: http://designportugal.net/servicos/design/ And another: ...
0
votes
2answers
45 views

I have no images in an activated wp theme

With this line everything works fine - (as a Non-Wordpress index.php): <link href="style.css" rel="stylesheet" type="text/css"/> When I activate the file as a wp theme and replace above ...
1
vote
1answer
402 views

Add custom image sizes to media uploader

I want to add custom image sizes to the media uploader: In order to do this, I use the following code (comments are there for convenience): // this function adds the custom image sizes to the ...
0
votes
3answers
137 views

How do I add a nested conditional within an echo - to use a default image if there isn't one in the post?

I'm trying to add a conditional that will display a default image if the "image" field isn't populated... here's what I'm trying to work with: $args = array( 'posts_per_page' => 3, ...
0
votes
1answer
71 views

Specific Days, Specific image on Front Page

Is there a plugin that will allow me to do the above? Basically I have a webcomic that updates twice a week with two different stories. http://www.lunarblade.com What I would like to be able to do ...
1
vote
1answer
462 views

Auto resize images after adding a new size

I have added a new (small) image size to the theme we develop: add_image_size('small', 160, 91, TRUE); How to automatically generate these small images (exactly of the specified size) for every ...
1
vote
1answer
326 views

Retrieving an alt tag from a custom field

I have a theme that uses TimThumb to generate thumbnail images on a gallery page. The problem is that image alt tags are not showing for each image on the main gallery pages, see here: ...
6
votes
5answers
8k views

Upload images to remote server

I am using Wordpress media uploader to upload images and I was wondering if there is a way to make it upload to my remote server instead of my local server? Example: My wordpress blog is hosted on ...
5
votes
1answer
2k views

Set JPEG compression for specific custom image sizes

I use various custom image sizes (by add_image_size) and I have set my JPEG compression to 30% with this filter: function jpeg_quality_callback($arg) { return (int)30; } add_filter('jpeg_quality', ...
1
vote
1answer
283 views

How to keep WP from recompressing Full Size images

I have noticed that WP does have the bad habit of recompressing Full Size images during uploads. I mean, it does make sense creating several smaller versions of each uploaded image, applying a default ...
-1
votes
1answer
53 views

I moved WordPress to root now posts go to 404

http://deepdreamers.com/?p=495 I followed the instuction from WordPress on moving your blog. When I click to gothe next page, I get a 404 message and the same happens when I click on on any posts. My ...
0
votes
3answers
7k views

Custom Taxonomy Images with Advanced Custom Fields

I've created a custom Taxonomy for a Custom Post Type, and created five or so terms within the taxonomy. I've created a single image upload and assigned it to the custom taxonomy, and uploaded images ...
1
vote
1answer
2k views

Broken image multisite

I've two wp sites (multisite) with the following config: 1# (Main site) Home: http:// www.mysite.com Upload Path: wp-content/uploads Fileupload Url: http:// ...
0
votes
2answers
2k views

Get an image from url in front end submission form

I am building a user generated content sharing theme so how can i allow visitors to upload an image from a url i mean to say that they enter the url and the image gets automatically attached this is ...
1
vote
1answer
776 views

wordpress get gallery images title

I am retrieving some images post with: $img = wp_get_attachment_image_src( $attachment_id, 'full' ); How can I retrieve the image title? Thanks.
2
votes
1answer
76 views

Randomly add a 'ul' list of images

I'm developing a photo gallery WP site. I would like to add "ul" list of images that are randomly picked from the gallery. How would I randomly pick a number of images from the media library. Any ...
1
vote
1answer
871 views

How can I remove the image attachment ALT field?

I've been using the technique described in this post to remove the caption and description fields in the uploads modal window, thus eliminating unused clutter for users. Since the title field is ...
1
vote
1answer
56 views

Images not working using Featured post

I have recently moved a wordpress website abc.com to xyz.com, And xyz.com functionality is good and working well. And i have created a post with a image in it using Featured Image, and when i publish ...
1
vote
3answers
4k views

Import Images from one self-hosted WordPress install to another

I am redeveloping a client's site and, for a number of reasons, in the process changing hosts. I'm developing it on the new host and to get the site orgainised I have attempted to import all the pages ...
0
votes
1answer
316 views

Featured Image or Post Thumbnail Displaying on index.php?

When I'm on the main page, of my site, site.com it shows an excerpt of each post along with a category to the side. it also displays the same thumbnail image but above the content and I'm guessing ...
5
votes
3answers
805 views

Separate Media Library for each user

I'm creating a theme for a client and one of their requests is to allow users to upload images for their own use, but there may be an option to share the images. Here are some of the caveats: Each ...
0
votes
2answers
561 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 ...
1
vote
0answers
841 views

Is there a way to delete images from Wordpress media library programmatically?

This is a follow-up of my question which did solve my problem, well, a little bit. I noticed that there are still images on my uploads folder but of different size. Is there a way to delete all ...