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)

2
votes
1answer
479 views

I'm trying to add an image in my CSS

I'm trying to add an image in my CSS with the theme folder code, <?php bloginfo('template_directory'); ?>, which works in HTML but for some reason it's not working in the CSS. Does anyone know ...
2
votes
3answers
572 views

Caption in Page adding unwanted 10px to width

I'm trying to create an image with a caption in a Page I'm working with. In the image options, I have it aligned right, with an image width of 220. Without the caption I have no problems, however with ...
3
votes
1answer
299 views

Pasting images removes class attribute

When you paste an image with a class attribute in the Wysiwyg editor, the pasted image no longer has this class attribute. This makes it harder to copy and paste images that are aligned with the ...
2
votes
6answers
2k views

hide/protect original full-size images

I was hoping it would be possible to save original images to a separate directory to the resized images so that they could be safely hidden but this seems to be too difficult. So I am now asking if ...
0
votes
1answer
135 views

Always display a picture even if the link is broken?

What I would like is to have a sort of fall back photo so I don't get red Xs.. Something like "photo unavailable please come back later" Is there a way to check if the image path is valid and if not ...
0
votes
2answers
939 views

Wordpress function when file is uploaded, deleted or edited

I need to call this bit of PHP when a file is uploaded, deleted or edited. $output = shell_exec("bash ./upload.sh"); echo $output; I can't seem to find the right code to execute this when any of ...
0
votes
2answers
683 views

Remove “%” from strings in serialized arrays in wp_postmeta

In the course of converting a blog from Blogger to WP and running a script to grab hot-linked images for hosting, I ended up with some funky images names like act%252Bapandas-210x290.png These ...
0
votes
1answer
600 views

adding images to wordpress pagination?

I'm working with a blank theme and my nav.php looks like this <div class="navigation"> <div class="next-posts" style="float: left;"><?php next_posts_link('&laquo; Older Entries') ...
1
vote
1answer
2k views

How to add a random image to a post from gallery and only show one?

How to add a random image to a post from gallery and only show one? I know how to add an image and a gallery. I need to have one image from the galley show on the page at random each time the page is ...
1
vote
1answer
973 views

Media > Image Sizes aren't being applied to uploads

Under Media Settings I edited the Image Sizes to the following: Thumbnail size: 170x80 Medium size: 550x170 Large size: 550x320 ("Crop thumbnails to exact dimensions" is checked) Maximum embed size: ...
0
votes
2answers
551 views

Wordpress: Preload next post images

As the title says, i would like a nice bit of coding to stick in my functions that pre-loads any images that are attached to the next post. This means that whilst my users are browsing, they page ...
1
vote
1answer
67 views

Special purpose photos with each post

How would I grab a photo, that has been added to a post, and use it elsewhere on a site when there have been several photos added to the post? For example, my site has a blog (Wordpress) and a ...
1
vote
2answers
602 views

How to get an image transferred via FTP or script to appear in Media Manager?

I've got a plugin that transfers some files over to the uploads folder of the site in which the plugin is installed. It works fine, however, the images are not appearing in the Media Manager. I ...
0
votes
3answers
345 views

Thumbnail and image management

I always though the the image manager into wp is not really good... I need to be able to generate square or custom size when i like where i like, much like TimThumb that generate thum on the fly... ...
0
votes
2answers
508 views

Wordpress Bug on IIS ? Problem when uploading image on IIS 7

When I upload image, I can preview it, but once it's uploaded, It's broken in post, I'm obliged to go to the directory and go to security to add NETWORK SERVICES the right to access the picture. How ...
1
vote
9answers
432 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 ...
5
votes
1answer
2k views

Programmatically get images by URL and save in uploads folder

I am involved in a large migration from another CMS to WordPress. We have a copy of the database and have worked out how to extract the content and programmatically create WordPress posts from it ...
1
vote
3answers
2k views

How to display post title & excerpt when mouse hovers on an image?

I am bit busy with developing one fashion website, currently (http://test-domain.zakirsajib.co.uk/), where I have images come from posts and when mouse will hover on any image, the corresponding post ...
0
votes
2answers
365 views

Need To Resize Images Exactly Without Losing Image Details

I am working on a Wordpress site that heavily uses image uploading and whatnot, I have defined the image sizes in my functions.php and I have hard crop mode turned on which ensures that my images are ...
0
votes
3answers
4k views

Applying automatic link class to images embedded to posts

I'd really love to be able to conditionally apply a CSS class to link elements of images embedded into posts, but I can't seem to figure this one out. Basically what I'd like to achieve is to replace ...
4
votes
1answer
3k views

How can I determine if a post has an image attachment?

As far as I know, there's not a simple function that will return true if a post has an attachment. With that in mind, what's the best way to determine if a post has an attachment (or even better, has ...
0
votes
2answers
262 views

Using the on-board image editor for featured images: edits are not being used

I've never really been comfortable with the on-board image editor in WordPress, and here's a good example of why: I'm just setting up a vanilla WP installation and am using the TwentyTen theme. I've ...
2
votes
4answers
4k views

Why can't I edit certain images from the WordPress Media library?

I've noticed some bizarre behaviour in my WordPress installation. For some photos, when I click "Edit Image", the full image is not displayed to me - just the area visible in the thumbnail. And yet, ...
4
votes
2answers
6k views

Why is wp_get_attachment_image_src not working with my custom size (add_image_size)

I have added an image size with add_image_size('gallery-thumb', 48, 48); Why when I do array_slice(wp_get_attachment_image_src($firstimg->ID, 'gallery-thumb')) I get the link to the full ...
3
votes
1answer
1k views

How can I add the “Use as featured image” to a custom metabox?

I am implementing a custom Meta box that allows the user to add images via a simple file input field (based around code on this site: Meta Box Script). This code allows multiple images to be added as ...
1
vote
1answer
777 views

Uploaded images not displaying in network site

I have a network of sites and have recently added another site. When I upload an image it uploads to the correct directory but is showing a broken image link when viewed within the library or on the ...
0
votes
2answers
3k views

Get an image from the media library. Struggling with the code?

Struggling with this code, the conditions work, the only way I can get the wp_get_attachment_url is to loop through it but then this outputs as many images from the media library and I only want one? ...
0
votes
3answers
4k views

How to get the image-URL from Media-Upload in a post?

I generated a new MetaBox for all standard posts in WordPress 3.1. There I generate a input:text field with the ID _meta_fotos[pic], which should hould the image url generated by the standard ...
2
votes
1answer
385 views

There's some way to add a wrapper around posted images?

I need to add a wrapper (I'll use <figure> in my example) around images posted through the editor, with a variable depending on the size image is being posted (thumbnail, medium, large, full), ...
0
votes
3answers
306 views

Get attachment if matches a variable

how do I match an image title from the media library to a variable then echo that image? this is my current code... <?php $args = array( 'post_type' => 'attachment', 'numberposts' ...
0
votes
2answers
704 views

Wordpress Theory Lesson - Image Columns within posts with alignment?

Trying to get my head round a request from a client, and thought I'd try to hivemind the solution a little bit. The client requires a two column post layout, with images down the right and text on ...
0
votes
1answer
58 views

View photo album without having to scroll down for each picture

I need a way to see my photo albums without having to scroll down for each picture. So, is there a way to lose the Header when I open the photo album ? Or, can the photo album open in a new window ? ...
1
vote
2answers
9k views

how to display post content without post image?

i've implemented a jQuery gallery for displaying several images within a post. the problem is that the_content(); also displays the post image. any ideas how to filter it? thanks
0
votes
1answer
315 views

attach several images to post + gallery

i'm wondering if its possible to attach several images to a post then display those images in a thumbnail/fading gallery? By the way, the images should also be resized to a fixed size + thumbnail. ...
2
votes
3answers
2k views

How to grab first image attached to post and display in RSS feed?

I've seen the tutorials on how to grab the first image and display it in a post, and those on grabbing the post_thumbnail and using that in the RSS feed, but does anybody know how to grab the first ...
0
votes
1answer
1k views

image upload/edit is broken: “Image data does not exist. Please re-upload the image.”

Image uploads (slowly), and displays in the media window. But size shows "(0 × 0)" and if I try to use Edit Image button I can't edit the image but instead get this message: "Image data does not ...
0
votes
1answer
392 views

Users uploaded image and matching an id or taxonomy

I have many posts with a unique reference for a custom field [123456], over time I would like an administrator to upload a single image that matches the custom field ie > 123456.jpg I would then like ...
0
votes
2answers
940 views

How can i link a custom post type thumbnail to intermediate size

I'm trying to build a picture gallery with custom post type in my theme and I think i figure it out almost everything but the call in the template, I already have the custom post type in the ...
1
vote
2answers
554 views

Twentyten Child Theme: header images display messed up in admin panel

WordPress v 3.0.4 multisite-network enabled, local installation w MAMP 1.9.4, PHP 5.3.2, Theme: Twentyten child TWO PROBLEMS: 1) Display of header image thumbnails in admin panel and 2) path to ...
0
votes
1answer
2k views

Link to File URL by default

Every time I insert an image into my post, the default link is to the image attachment page. How can I change it so it always links to the File address?
0
votes
1answer
215 views

How to automatically convert “%” and “+” in image urls on upload

I mass import products via csv and use this plugin http://wordpress.org/extend/plugins/cache-images/ to download the images to my server. Problem is some of the image urls have % and + characters in ...
0
votes
1answer
353 views

how to stop a gallery slideshow

I am using the Dynamix WP theme. I have three images displaying in a loop with fade effect. The images continue to fade from one to other. However I would like to stop this effect once all images have ...
2
votes
2answers
901 views

Plugin to tag (add a class to?) images attached to a post?

I'm looking for a plugin that will let a user tag images attached to a post. My goal is to have a class added to the tag so that I can (hopefully) then create different jQuery image rotators within ...
0
votes
1answer
77 views

Wordpress 3.0 embedded images

Wordpress 3.0 and newer does not allow you to remove the links placed on images without manually striping it withing the html. Any idea how to do that by default?
1
vote
1answer
2k views

Link Attachment Image to Category

How do you link an attachment image to its category? function wp_attachment_image($size = thumb) { if($images = get_children(array( 'post_parent' => get_the_ID(), ...
1
vote
1answer
487 views

How to create a managed image repository in wordpress

I want to redesign my current website (www.ch3.gr) using wordpress. Since the content of my site will be 95% images, I am looking for a better way to manage them from within WP back end. What I have ...
1
vote
1answer
1k views

SEO images in Nextgen Galleries

I have a couple blogs / wordpress sites that I post pictures on. I have noticed that most of the pictures I post with the nextgen gallery plug in never show up in google images search. Is there a ...
3
votes
1answer
474 views

get images from post and make a zip

here is what i have so far. function zip_gallery() { global $post; $images = get_children(array('post_parent' => get_the_ID(), 'post_type' => 'attachment', 'numberposts' => -1, ...
0
votes
2answers
2k views

Get the url of the full sized attachment image using post ID?

I have this function: function get_image_link( &$post ) { $image_link_meta = get_post_meta( $post->ID, 'as_link_to_image', true ); $image_link_from_post = ''; if ...
0
votes
5answers
4k views

TImthumb not working for absolute path

Tim thumb script is working fine, My issue is with absolute path and relative path. when i give relative path, i get the output. but when i use the absolute path, i am getting 403 forbidden error. ...