• Resolved web163

    (@web163)


    Hi,

    I just made some image galleries using the feature “gallery” in WordPress. But if I klick on the pictures to increase them, and then click on “next” or “previous”, a random picture from all uploaded images is shown. My idea was that users can click through the pictures of one gallery… so that doesn’t really make sense.
    I didn’t check the “random order” box. So how can I fix this problem?

    Thanks a lot!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    The template your theme uses to display attachments from galleries may need adjustment or replacement. Specifically the template tags used for next/previous image navigation. My theme uses previous_post_link() and next_post_link() for this and the links remain limited to only the attachments in the gallery.

    I’m not quite sure how these functions accomplish this, but if your gallery includes images already attached to a different post these links will not work correctly. The images need to be uploaded specifically for the gallery. If you rearrange the image order after defining the gallery there may be a problem with the links reflecting this new order. They’ll still only link to the gallery images, but in the original order, not the revised one. So be careful with the order in which you pick the images to be uploaded.

    Thread Starter web163

    (@web163)

    Thank you for your help! I think I found the file where I would have to make the changes, but I have no experience with html code…
    Now I just activated the NextGen Gallery Plugin, I think it has more functions / options and it should be working for choosing just the pictures I want for a specific gallery.

    Moderator bcworkz

    (@bcworkz)

    Yes, NextGen is several orders of magnitude more sophisticated than the gallery shortcode ??
    Enjoy!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘gallery – order of pictures in preview’ is closed to new replies.