View Single Post
Old 08-31-2013, 01:47 PM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
Quote:
Originally Posted by ctggls View Post
Solved with the attachment page also: don't know if it's the correct one:

functions.php

foreach ( $attachments as $id => $attachment ) {
$full_image = wp_get_attachment_url($id);
$thumbnail = wp_get_attachment_thumb_url($id);
$title = trim($attachment->post_excerpt) ? wptexturize($attachment->post_excerpt) : $attachment->post_title;
$attachment_page = get_attachment_link($id);

and then

if(gallery_option('galleryopt_lightbox_type') == "none") {
$output .= '<li><a href="'. $attachment_page .'"><img class="img" src="'. $thumbnail .'"></a></li>' . "\n";

It seem to work ok for now
ya im gonna make the attachment urls look a bit better.

update will be out today.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote