Search the Community
Showing results for tags 'photo gallery'.
Found 2 results
A while back I was asking for a simple Wordpress photo gallery. No one ended up providing a decent solution, so I decided to create something on my own. I like the native Wordpress photo gallery, but it doesn't have anything to get you to the next picture after you click to enlarge a thumbnail, that's not very user friendly. I want people to actually view my photo gallery, if it's not convenient then people are not going to use it. I was using NexGen Gallery, but it's bloated and the pictures don't load as quickly as I would like. So here is a simple solution. I read that with the native Wordpress gallery it searches to see if you have a image.php file present, if not it uses the Single.php file. I took a look at my theme and there is no Image.php file there. So I took my Single.php file and saved it as Image.php. A couple minor changes to make to this Image.php file: Find and remove: <?php the_content(); ?> Replace with: <div style="float:right;"><?php next_image_link(false, 'Next Pic') ?></div><?php previous_image_link(false, 'Previous Pic') ?><br /> <div style="text-align: center;"><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'large' ); ?></a></div> <?php if ( !empty($post->post_excerpt) ) the_excerpt(); ?><br /> That's it, save it off and upload into your theme directory. It makes it so simple, no if someone clicks a thumbnail in your gallery they can view that picture and also have links to view the next one or go back to previous without backing up to the gallery.
I'm trying to find a good and simple photo gallery for Wordpress. I have used NextGen gallery before, but it seems to be pretty bloated and slow when browsing through pictures. I'm looking for a solution that will count pageviews each time you go to a new picture, so nothing like lightbox or any flash players please.