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
2answers
4k views

Get image from post's gallery

Is there any possibility on Wordpress to get an image from a post gallery? Images are not inserted in the post, are on it's gallery. I'm trying to do a "galleries index" page and instead having the ...
0
votes
1answer
450 views

If statement to check if post has image

I have the following code. When There is only one image in the backend, the second image shows up with a little question mark instead of nothing. I am looking for a way to check if the image exists ...
0
votes
1answer
674 views

Unattaching images from a post

I currently have a custom post type in a theme I'm developing which will be used for portfolio items. So far, I have implemented functionality that allows images to be attached to a portfolio post. I ...
0
votes
1answer
2k views

How to upload multiple files/images when developing a wordpress plugin?

I decided to learn how to develop wordpress plugins and I am totally confused and frustrated. I've already read some good tutorials and I guess I am already familiar with the basics. Now, I want to ...
1
vote
1answer
555 views

add_image_size in a Plugin i created

I created a plugin and i need to use add_image_size in it. I know how it work in the function file and for a theme, but how can i implement this in a plugin? I want new images uploaded by wordpress ...
0
votes
1answer
175 views

Storing images on a local site

sorry for the elementary question. When I'm building a local site on Wordpress, should I be storing my images in an "img" folder and then using CSS "background-image" to show these photos? That way, ...
2
votes
1answer
347 views

Is there a way to define a default caption to all uploaded images

As the title of this answer say, I want to define a default caption to all uploaded images in my WordPress... Is there a way to do something like this?
1
vote
1answer
795 views

add data-attribute to all images inside the_content()

I wonder if it's possible to add a filter to all images inside the_content() to create the following image pattern for all images … <img class="digest" src="smallest-file.jpg" ...
1
vote
1answer
1k views

Custom page template to display all image attachments

I am tryin to insert all pictures in media to page. By meaning all pictures, everything added in blog. I ve been looking this feature all day. Is there any shortcode for that or something easy to make ...
0
votes
2answers
769 views

Filter for post_thumbnail: link to small src and add data-attribute

I wonder how I can link manually to the smallest filesize for the_post_thumbnail() within its filter function … add_filter( 'post_thumbnail_html', 'post_thumbnail_html', 10, 3 ); function ...
2
votes
1answer
352 views

Check if page/post has any anchors that link to an image jpg/gif/png

What I'm aiming to do is add fancybox to a site I'm developing, but I only want to enqueue the JS/CSS etc if the page/post needs it. My thoughts are that I would need to check all the anchor tags on ...
1
vote
1answer
567 views

Change Default Image HTML

I am making a Wordpress theme and want to change the default image html. For example if you upload an image using Wordpress uploader it generates the following html for your images <a ...
2
votes
1answer
496 views

Prevent Width and Height Attributes in Image Tag Output

I'm trying to control the output of the random image within this bit of code. The end goal is to NOT output the width and height attributes for the image. I want this: <img src="URL HERE" ...
0
votes
1answer
59 views

Only show posts with image and the correct ammount of posts in loop

This script makes a loop showing only posts with images, but I have a problem. It doesnt show the right ammount of posts pr page. Probably because it counts the total nr of posts, including the ones ...
1
vote
1answer
510 views

Mass update excerpt

I'm using a photoblog theme which upon creating a new post it takes the post attachment and saves a modified "img src" string into the excerpt field. It then uses <?php the_excerpt(); ?> to ...
7
votes
7answers
5k views

How to generate thumbnails when needed only?

I have 1000 images. How can i make wordpress to generate thumb only when needed. For example home slider will only use 10 images i dont want the other 1000 images have that thumbnail generated as its ...
0
votes
1answer
630 views

Multiple images per post - Show random image elsewhere

I'm after either a plugin suggestion or code suggestion that best handles images per post. Here's the scenario, every post could have up to 6 images, all to be assigned class names etc. All to be ...
0
votes
2answers
2k views

Images in sub-pages fail to load

I added a .htaccess file to a wordpress website I'm working on, to show nice urls instead of page ids. The content of the .htaccess is this: <IfModule mod_rewrite.c> RewriteEngine On ...
0
votes
2answers
77 views

problem with add_size_image

why if im add size like : add_image_size( 'featured1', 466, 316, false); add_image_size( 'featured2', 466, 260, false); the seconde size Does not generated What is the problem ?
1
vote
2answers
495 views

How to remove the whitespace in image name and save the new file

I am using a wordpress plugin called "Add Linked Images To Gallery" in order to save a local copy of images posted on my site. I uploaded all my files in a different hosting and I was testing this ...
0
votes
1answer
155 views

Excluding post thumbnail from the attachment.php when using wordpress gallery

I am looking for this answer everywhere and can't find it. I setuo the wordpress default gallery using the attachment page which shows next and previous photos. everything is working fine and I have a ...
1
vote
1answer
132 views

How to use photo in multiple posts?

I have a theme that shows images only from gallery tab (so i can't re-use an image to other posts). As you know an image can only get attached to 1 post. I found a plugin that you can attach an image ...
0
votes
2answers
355 views

How to only publish posts with image in it

I use a standard loop in my index.php and that shows all the posts beeing posted. What i'm looking for is a code that only shows the posts that have image(s) in it. With other words: i only want to ...
5
votes
1answer
8k views

How to custom crop each image size?

I have over 6 image sizes, Therefore WP cannot satisfy every size with proper cropping as some images get their head cut off and some don't. Is there a plugin that lets me choose the cropping area of ...
1
vote
1answer
326 views

How would one change the default url structure of attachments?

When I click on post images it redirects in a page with a url like this: http://localhost/?attachment_id=897. Can I set the default image link like http://localhost/wp-content/uploads/2012/05/dice.jpg ...
2
votes
1answer
928 views

Link Featured Thumb to Attachment Page, If Possible

Are featured thumbs uploaded the same as other images and have their own attachment post url? I'm trying to utilize the 3.0+ post formats and am using the featured image when creating a post under ...
0
votes
1answer
50 views

How do I set the sizes of my thumbnails when inserting a [gallery]?

A really simple thing, yet my images are uploaded as about 500px wide, I have them selected as full size, yet when I use the [gallery] shortcode, it crops the thumbnails to 100w x 75h. This isn't ...
0
votes
2answers
942 views

Native gallery sorting is ignored

On my website, I recently got a quite strange problem. I used to upload images via the nextGen Plugin. But since with this plugin google doesn't seem to index my pictures, I wanted to switch back to ...
0
votes
1answer
312 views

Setting default image size

I'm using WpeMatico plugin which saves images in the post using: $attach_id = wp_insert_attachment( $attachment, $filename, $postid ); I looked inside wp-includes/post.php > wp_insert_attachment ...
0
votes
2answers
236 views

Photo Gallery Plugin and Touch Devices

I am looking for a decent plugin that will display a slide show of images that are hosted on Flickr. I have tried Slickr Flickr and and Flickr+Highslide (but that one seems to be missing from the WP ...
-2
votes
1answer
67 views

How can we see which posts don't have a featured image or it doesn't exist anymore?

Which plugin or code I need to make it show me a list with the posts that don't have featured image or is broken(the featured image doesn't exist anymore)?
2
votes
1answer
2k views

resize images not crop

Looking for a hack to resize images on upload (all forms of image uploads on wordpress) to exact dimensions, but not to crop. I will open a bounty for this question since I believe It can be of help ...
0
votes
2answers
6k views

Download images from media library to computer in BULK?

All I want is to download all images from the media library to my computer. I don't want to then use them in another site. I uploaded them from a camera card while traveling, and then it was stolen. ...
0
votes
1answer
236 views

Allow users to contribute images to a post

I'd like to curate, per-post, a collection of images submitted by many different users. Meaning - when a user views a post, they'll see as part of it the images that others have contributed, and will ...
-2
votes
2answers
3k views

How can I make all gallery images to open in a new window?

How can I make all gallery images to open the high resolution image in a new window?
0
votes
1answer
440 views

Featured Image Thumbnail size on Twenty Ten Archive Page

I have figured out how to get a thumbnail to appear on a twenty ten archive page but I cannot figure out how to resize it to say a size of "150px" by "150px". For example, on the following page the ...
1
vote
3answers
2k views

How to show large image in checkout page using WP Ecommerce plugin [closed]

I want to show large image in checkout page right now it showing 31x31 size image in wpsc-shopping_cart_page and using <img src="<?php echo wpsc_cart_item_image(); ?> to call thumbnail image. ...
0
votes
1answer
462 views

How to move an image in a plugin to the upload directory and make it as a media of wordpress?

How to move an image in a plugin to the upload directory and make it as a media of wordpress? I would like to use them in posts. Expand question: I would like to generate images using other ...
1
vote
1answer
1k views

Grab remote images and update links in existing posts

I have a blog that's been migrated from Typepad to Wordpress, but all of the image links still link to Typepad, and the images are still located there. Is there a plugin available for 3.3.2 that will ...
1
vote
1answer
1k views

Change website URL without breaking links or images? WP 3.3

I am using Wordpress 3.3.2. Currently I am working on a website in a dev folder on my domain, dev.domain.com. Upon creating pages and blog posts, it just occurred to me that when I move the WP ...
4
votes
2answers
5k views

Image Upload from URL

I really like the way SE uploads an image from a URL (I'm sure many do!). I've been searching, but can't find, is there a plugin or a method similar to this available for WordPress? I know an image ...
-1
votes
1answer
79 views

Images get uploaded itself from the computer

I have a lot of images in my computer and I want to upload them to my website. For that I am looking for some automated plugin in which I can copy those images and it would upload them itself. Is ...
0
votes
1answer
295 views

How do add custom class and id to the <a> that is generated from media gallery insert image into post [duplicate]

I want id="fancybox" and rel="photogallery" added to the generated automatically once it is "inserted into post" from the media gallery. Thanks in advance!!!
5
votes
4answers
3k views

What's the proper way to find and remove duplicate images from posts and the media library?

I just exported a largish WP blog from MediaTemple to PHPFog. I used the standard WordPress export and import plugins. For some unknown reason all of my media assets have been duplicated. I now have ...
3
votes
1answer
515 views

Preview Image Path in Admin Section

So I have run into a little glitch. i have a custom path for uploads and it works. the files get saved to the right place, etc. The problem I have is the 'widget box' in the admin section. immediately ...
1
vote
5answers
5k views

A way to change image urls in post to cdn image url?

due to some reason my hosting company isn't able to fix if i use w3 total cache or w3 super cache for caching my site's sql usage keeps on peaking.... and on high spikes servers gets laggy and down ...
0
votes
1answer
490 views

Theme currently showing thumbnails, how to show full size?

My theme, Grisaille, currently shows thumbnails in the post preview on the "home" page. How do I make it so that full size images show both on the "home" page and on the individual post? ...
1
vote
4answers
5k views

show author image in posts

I need to display author image along with posts. I used the following code to display posts with author image. $the_query = new WP_Query("post_type=post&paged=".get_query_var('paged')); while ( ...
4
votes
2answers
973 views

Cropped featured image replaces original image in gallery

Firstly, I have done my research as thoroughly as I possibly can. Searches have been made, but I have not found any advice or solution as to my exact issue. Ok, time to explain. Currently I am ...
0
votes
1answer
819 views

How to hide image-url if no attachment?

How can I hide the img-tag if there is no attacment? (function is from this tutorial: http://wp.tutsplus.com/tutorials/automagic-post-thumbnails-image-management/) <img src="<?php ...