Title: Gallery Navigation
Last modified: August 19, 2016

---

# Gallery Navigation

 *  [Laura](https://wordpress.org/support/users/mitten/)
 * (@mitten)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/gallery-navigation/)
 * I’ve been working with the new built in gallery feature and I’m not getting the
   gallery navigation (by that, I mean the ‘next’ and ‘previous’ thumbnails seen
   on Matt’s [installation](http://ma.tt/2008/03/19-gallery/mat_3231/) and in his
   [screencast](http://wordpress.org/development/2008/03/wordpress-25-rc2/)). Is
   there something special that needs to happen in the template for that to happen?
   A new set of tags to include or somesuch? And I didn’t see a way to do the links
   like Matt has (like the View Full Resolution link). I didn’t see any reference
   to any new template tags on the page about [gallery shortcodes](http://codex.wordpress.org/Using_the_gallery_shortcode).
   Is there another reference somewhere? Pointers or answers or even just vague 
   clues would be much appreciated.
 * Also, I am not able to upload more than one file at a time (as Matt showed in
   his screencast). That seems less about themes and more like a bug, but I thought
   I may as well mention it to see if it’s just me or something that’s across the
   board.

Viewing 15 replies - 1 through 15 (of 33 total)

1 [2](https://wordpress.org/support/topic/gallery-navigation/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/gallery-navigation/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/gallery-navigation/page/2/?output_format=md)

 *  [tmobilon](https://wordpress.org/support/users/tmobilon/)
 * (@tmobilon)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/gallery-navigation/#post-721373)
 * I’m with the very same doubt, and i’d like to know how to do all that stuff that
   Matt did in his Gallery.
 *  [falcor200](https://wordpress.org/support/users/falcor200/)
 * (@falcor200)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/gallery-navigation/#post-721456)
 * I also cant get the new gallery feature to work like Matts. I am able to upload
   more then one file at once but I would like to be able to post the one small 
   image that opens up the gallery rather then post all the gallry images on the
   page.
 *  Thread Starter [Laura](https://wordpress.org/support/users/mitten/)
 * (@mitten)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/gallery-navigation/#post-721489)
 * Ok, I get the navigation thumbnails (previous/next images) when I use the Default
   theme included with 2.5. It didn’t work with the Default theme from the previous
   WP version. Not sure what changed; I’ll see if I can find it.
 * Still can’t upload more than one image at a time, though. (Firefox 2.0.0.13 or
   Safari 3.0.4 on OSX 10.5.2)
 *  Thread Starter [Laura](https://wordpress.org/support/users/mitten/)
 * (@mitten)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/gallery-navigation/#post-721509)
 * OooooooooKay. Found it.
 * There’s a new template you need to create to display your gallery images the 
   way you want. You need to create ‘image.php’ and include the next-previous links
   there. You can look at the image.php file included with the Default theme for
   an example, but basically, when you include the tags below, you’ll get the thumbnails.
 *     ```
       <div class="navigation">
          <div class="alignleft"><?php previous_image_link() ?></div>
          <div class="alignright"><?php next_image_link() ?></div>
       </div>
       ```
   
 *  [sacredpath](https://wordpress.org/support/users/sacredpath/)
 * (@sacredpath)
 * Automattic Happiness Engineer
 * [18 years, 2 months ago](https://wordpress.org/support/topic/gallery-navigation/#post-721516)
 * [@mitten](https://wordpress.org/support/users/mitten/), thanks so much for posting
   that, but I have to ask MATTCO, **why he hell do we have to do this?**
 *  Thread Starter [Laura](https://wordpress.org/support/users/mitten/)
 * (@mitten)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/gallery-navigation/#post-721538)
 * Can’t answer that, sacredpath. It does seem a little mean to make a new template
   available but not tell anyone about it.
 * I wrote a quick [blog post](http://blog.mittenartworks.com/new-gallery-feature-in-wordpress-25)
   about it; there are more new template tags besides the ones I mentioned above.
 *  [tmobilon](https://wordpress.org/support/users/tmobilon/)
 * (@tmobilon)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/gallery-navigation/#post-721647)
 * I’m still trying to find out how to show the galleries like matt does at the 
   listages, and how to show picture exif informations.
 * Thanks mitten for the help!
 *  [doorframe](https://wordpress.org/support/users/doorframe/)
 * (@doorframe)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/gallery-navigation/#post-721665)
 * Matt’s using some variant on the Asides trick:
 * [http://codex.wordpress.org/Adding_Asides](http://codex.wordpress.org/Adding_Asides)
 *  [doorframe](https://wordpress.org/support/users/doorframe/)
 * (@doorframe)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/gallery-navigation/#post-721668)
 * Though, admittedly, I don’t know what he’s doing to pull an exemplary image from
   the image gallery… Hmm…
 *  [doorframe](https://wordpress.org/support/users/doorframe/)
 * (@doorframe)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/gallery-navigation/#post-721671)
 * Ok, if you use the Asides trick linked above, you can create a special appearance
   for your image gallery posts. If you put the following in, it will display the
   FINAL image from your gallery with a link to that image (not the gallery):
 * `<?php previous_image_link() ?>`
 * The next_image_link does not work. The next step to recreate Matt’s thing would
   be to modify media.php to display the image without the link so we can link back
   to the gallery. I guess you’ll have to create a new function.
 * My program skills are weak, but I can read it enough to modify what already exists.
   This shouldn’t be too hard.
 *  [danw700](https://wordpress.org/support/users/danw700/)
 * (@danw700)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/gallery-navigation/#post-721674)
 * hi
    just lost my post i think – i’m a newbie – started wordpress last week – 
   saw MAT do sone picture up load & thought it would be cool. upgraded to 2,5 c3
   along the way lost all my posts & passwords even in my backup somehow. then when
   i get to try this i’m missing 1/2 of the buttons to the job. it just wont work.
   uninstalled went back to 2.5 and i’m waiting for a solution – i did join the 
   bets testing email BUt my box was swamped in talk about white space – the least
   of worries so i got off the list i would like to simply upload photos btw thanks
   for making blogging so easy cheers dan
 *  [doorframe](https://wordpress.org/support/users/doorframe/)
 * (@doorframe)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/gallery-navigation/#post-721723)
 * I was wrong, this line of code used in index.php:
 * `<?php previous_image_link() ?>`
 * shows the last image uploaded into a gallery (or something) not the last image
   uploaded into the gallery associated with a particular post. So, as you upload
   new images, this image will change. Not what I wanted.
 * Back to the drawing board. Someone email Ma.tt.
 *  [deanoaus](https://wordpress.org/support/users/deanoaus/)
 * (@deanoaus)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/gallery-navigation/#post-721744)
 * Hi All,
 * I’ve emailed Matt… but he specifically states on his page he won’t respond to
   requests RE software.. so.. we’ll see how we go. I too am in the same boat where
   I want to display a “list” of galleries.
 *  [deanoaus](https://wordpress.org/support/users/deanoaus/)
 * (@deanoaus)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/gallery-navigation/#post-721749)
 * Ooh, i’m having a bit of luck using [http://fairyfish.net/2007/10/16/advanced-post-image-plugin/](http://fairyfish.net/2007/10/16/advanced-post-image-plugin/)
   that plugin.
 * Editing some code now to see if I can get it to format what I want, but so far
   I have a listing of the first photo of any post with included images.. so.. going
   well!
 *  [deanoaus](https://wordpress.org/support/users/deanoaus/)
 * (@deanoaus)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/gallery-navigation/#post-721752)
 * Yup, working for me. 🙂
 * Using the following code `echo '<a href="'.get_permalink($post->ID).'" title="'.
   wptexturize($post->post_title).'">'. $img .'</a> <b>'. wptexturize($post->post_title).'
   </b><br /><br />';`
 * I was able to get it to list all posts with photos attached, display the ‘first’
   photo of that post, then link back to that post so all photos can be displayed.
   🙂

Viewing 15 replies - 1 through 15 (of 33 total)

1 [2](https://wordpress.org/support/topic/gallery-navigation/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/gallery-navigation/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/gallery-navigation/page/2/?output_format=md)

The topic ‘Gallery Navigation’ is closed to new replies.

## Tags

 * [gallery](https://wordpress.org/support/topic-tag/gallery/)
 * [template tags](https://wordpress.org/support/topic-tag/template-tags/)
 * [templates](https://wordpress.org/support/topic-tag/templates/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 33 replies
 * 16 participants
 * Last reply from: [kicksonfire](https://wordpress.org/support/users/kicksonfire/)
 * Last activity: [17 years, 7 months ago](https://wordpress.org/support/topic/gallery-navigation/page/3/#post-722230)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
