So with my blog i have a photo attachment page but it only shows to photo’s at a time, and those two photo’s are used as the navigation and i hate that.
I want the attachment page to show all the photo’s that goes along with the rest of that set.
Here is the current code
<div id="nav-images" class="navigation clearfix">
<div class="nav-next"><?php next_image_link() ?></div>
<div class="nav-previous"><?php previous_image_link() ?></div>
How do i change that to show all the post attachments?
Your code and description seem to refer to the previous/next attachment navigation. That code is intended to display previous/next attachment navigation, and that’s exactly what it’s doing.
If you want to display all attachments:
[gallery]
shortcodeProgrammatically, in the template file, use e.g.
get_posts()
, combined with e.g.wp_get_attachment_image()
:Hi Chip, Unfortunately that didn’t work, but I finally found it after hours and hours of searching.
First you have to add the below code to the functions.php file
and then add the below code to where you want the thumbnails to show.
Sorry I don’t know how to put the whole code in the box so i had to jam toegether every line 🙁