Image Gallery –> Click to orginal file
-
Using WP 2.6.2, I use the gallery feature often with me TGP site. I’m curious, how, when a user clicks the thumbnail they are brought to the gallery page of a larger image. IS IT POSSIBLE, for an additional link to the original image – as image uploader scales to fit my template.
see code:
<?php get_header(); ?>
<div id=”content_box”>
<?php include (TEMPLATEPATH . ‘/sidebar.php’); ?>
<div id=”content” class=”posts”>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h2><?php the_title(); ?></h2>
<h4><?php the_time(‘F jS, Y’) ?><?php edit_post_link(‘Edit’, ‘·’, ”); ?></h4>
<table width=”680″ border=”0″ cellspacing=”0″ cellpadding=”0″>
<tr>
<td align=”left”><?php mf_previous_image_link(‘<img src=”http://babeadayonline.com/wp-content/themes/BADv2/images/nav-pic-previous.gif”‘) ?></td>
<td align=”right”><?php mf_next_image_link(‘<img src=”http://babeadayonline.com/wp-content/themes/BADv2/images/nav-pic-next.gif”‘) ?></td>
</tr>
</table>
<!– Begin Content –>
<div class=”entry”>
<p class=”attachment”><?php echo wp_get_attachment_image( $post->ID, ‘large’ ); ?>
<p><?php if ( !empty($post->post_content) ) the_content(); ?></p>
</div><table width=”680″ border=”0″ cellspacing=”0″ cellpadding=”0″>
<tr>
<td align=”left”><?php mf_previous_image_link(‘<img src=”http://babeadayonline.com/wp-content/themes/BADv2/images/nav-pic-previous.gif”‘) ?></td>
<td align=”right”><?php mf_next_image_link(‘<img src=”http://babeadayonline.com/wp-content/themes/BADv2/images/nav-pic-next.gif”‘) ?></td>
</tr>
</table>
<!– End Content –>
<?php endwhile; else: ?>
<h2 class=”page_header”>Uh oh.</h2>
<div class=”entry”>
<p>Sorry, no posts matched your criteria. Wanna search instead?</p>
<?php include (TEMPLATEPATH . ‘/searchform.php’); ?>
</div>
<?php endif; ?>
</div>
<?php include (TEMPLATEPATH . ‘/r_sidebar.php’); ?>
</div>
<?php get_footer(); ?> -
Sorry, I don’t think you’re in the right place. This is the support forum for WordPress.COM. You need to be over at support for self-hosted WordPress http://wordpress.org/support/
-
My bad. I found an extension that does this: http://wordpress.org/extend/plugins/gallery-plus/
-
And once again, to make it clear, that extension DOES NOT WORK HERE at wordpress.com. You are in the wrong forum, as justjennifer said.
- The topic ‘Image Gallery –> Click to orginal file’ is closed to new replies.