attach several images to post + gallery

Yes, you can use the standard wordpress shortcode, after having attacched the images to your post. To attach images to your post, you can use the button “Upload Media”. Upload the image from your disk and the press “Save Changes”. The image will be attached to your post. Then use the gallery shortcode to insert … Read more

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

If you want to exit the loop after you find an attachment, use break. // Define $programme and pull up $attachments as above $attachment_url=””; foreach ( $attachments as $attachment ) { if ($attachment->post_title == $programme) { $attachment_url = wp_get_attachment_url($attachment->ID); break; } } if ( $attachment_url ) { echo $attachment_url; } else { echo ‘/images/nontvimg.jpg’; }

Thumbnail and image management

I made my own, but I only included the basic parameters. Just place this code in your theme’s functions.php file. You will need to update the path to timThumb. // [timThumb id=”123″ w=”300″] function timThumb_func( $atts ) { extract( shortcode_atts( array( ‘id’ => ”, ‘w’ => ”, ‘h’ => ”, ‘q’ => ’90’ ), $atts … Read more

How to enlarge thumbnail on mouseover?

Try this jQuery plugin: http://www.mind-projects.it/projects/jqzoom/ If you need help in making it interact with NextGEN gallery, let me know. You ultimately need to add the script via wp_enqueue_script and then setting it to fire on the NextGEN Gallery objects. (If you do this modularly enough, you might even have the makings of a pretty decent … Read more