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
2answers
810 views

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

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
360 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
597 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
529 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
541 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 ...
8
votes
7answers
6k 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
652 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
79 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
523 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
158 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
366 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
328 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
969 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
993 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
318 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
241 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
69 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
237 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
452 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
483 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
80 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
300 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
534 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
499 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
6k 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
1k 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
862 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 ...
4
votes
1answer
720 views

Auto-modifying original [full size] images

Is there a way to make WordPress process Full size images, which by default it leaves unmodified?
-1
votes
2answers
80 views

HTML in PHP problem [closed]

I have the following code but I always get an error, it's the first time I've tried to merge HTML with PHP: <?php if(get_field('post_image')) { echo '<img src="'. get_field('post_image') ...
3
votes
1answer
2k views

Use Media Library to manage galleries like Nextgen (with folders, albums, collections, tags, categories, terms…)

I'd wish to use WP 3.x standard Media Librery rather than relying on 3rd party plugins like NextGen no matter how well they're written. I just don't like duplicating functionalities. Media Librery ...
0
votes
1answer
128 views

photo gallery implementation like tmz

** REVISED POST ** I have a custom post type called photo_group that allows you to input an array of photos. I also have a single post called "photos" which is re-written to be my-website.com/photos ...
0
votes
1answer
142 views

How can I externally retrieve a post's custom sized image

I would like to be able to display my last X wordpress posts in the sidebar of my phpBB3 forums. Since I can't use WP's functions (because trying to use WP's functions into phpBB3 generates ...
6
votes
2answers
196 views

Add default Backgrounds

Is there code or a plugin that would make it possible to add default backgrounds, like you can with default headers in Twenty ten. Seems like the same frame work for backgrounds and headers.
1
vote
2answers
255 views

Upload .doc to blog

All my blog contents are well prepared in MS Word. Some contents have image flow chart. On copying the contents from Word doc, i am not able to copy the Images. How should i copy both contents and ...
3
votes
3answers
3k views

Settings in 'Media > Settings' is ignored when inserting images

When I upload an image, it is automatically resized as I would expect, however the sizes for inserting the image seem to ignore the settings I've placed in Settings/Media. In my media settings I ...
1
vote
1answer
3k views

How to create a simple slideshow out of a post image gallery?

Are there any solutions to transform a default image gallery into a simple slideshow as seen in this theme? Note: click to move to the next picture in the gallery.