Ready to get started?Download WordPress


Next / Previous image (7 posts)

  1. phattrance
    Posted 5 years ago #

    When i use the wordpress default image uploader and paste some thumbnails and a visitor click on the thumbnail they will go to another page were they can view the full image, is there a plugin that adds the "next or previous image" link so that the visitor dont have to got back to main page and click on the next thumbnail?

    for example: when someone click on a thumbnail they will come to this page: http://dailymobile.se/2008/08/22/unboxing-pictures-nokia-7900-crystal-prism-pink/nokia-7900-crystal-prism-pink08/

    i want a next / previous image link here so that they can quickly go to next page instead of going back to the main post.

    the plugin MUST work with wordpress default image application.

  2. glrss
    Posted 5 years ago #

    Your theme needs an image.php file. The default theme uses <?php previous_image_link() ?> and <?php next_image_link() ?> to enable thumbnail navigation of next and previous images.

    Also, here's mention of a plugin which replaces the images with text links.

  3. phattrance
    Posted 5 years ago #

    i couldnt find a image.php under my themes dir. is there something that i need to write myself (really dont know anything about php) or should it be there?

    im using the contempt_v2 theme


  4. phattrance
    Posted 5 years ago #

    i added this code to my new theme BUT it looks Kinna strange, the thing is that the next and the previous images are stuck together, what should i write in the page template so that the previous image is to the left and the next image is to the right?

    please help me :)

    Current code:
    Previous Image: <?php previous_image_link() ?>

    Next Image:<?php next_image_link() ?>

    example url: http://dailymobile.se/2008/12/12/htc-touch-hd-photo-gallery-2/htc-touch-hd-pictures-03/

  5. phattrance
    Posted 5 years ago #

    the page template can be found here: http://filer.dailymobile.se/forum/attachment.zip

  6. phattrance
    Posted 5 years ago #

    it have been fixed now =)

  7. taghaboy
    Posted 4 years ago #

    can you share with us your solution.

Topic Closed

This topic has been closed to new replies.

About this Topic