WordPress.org

Forums

[resolved] WP2.5 gallery. Next/Prev image links. How? (3 posts)

  1. dneez
    Member
    Posted 7 years ago #

    Hi,
    how can I get the url and thumbnail for the next and previous image in the WP2.5 built-in gallery? I tried wp_get_attachment_url but I don't know how to get the next or previous attachment id. What I try to achive is something like shown here. Notice two thumbnails below image with links to next and previous image.
    Deniss.

  2. Look at the wp-includes/media.php file. See how the gallery shortcode does it.

  3. dneez
    Member
    Posted 7 years ago #

    Thanks.
    wp-includes/media.php revealed two functions previous_image_link() and next_image_link() which return thumbnails with links to previous and next images.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags