Support » Fixing WordPress » Click Image For Previous Post (photoblog)

  • I wonder if this syntax <?php previous_post( ); ?> can be used and customized to click on an image (such as on a photoblog) to see the previous post (image)?

    I should also mention that I still use WordPress1.2. I don’t know if that has anything to do with it or not. I noticed the main post, or content is displayed by this code:
    <?php the_content( ); ?>

    I’ve tried this combination…
    <?php previous_post('%','<?php the_content( ); ?>','no','no'); ?>
    …but it doesn’t work.

    Is the problem the PHP syntax, the CSS, or a combination of both?
    Here’s my photoblog site: spectrum

Viewing 6 replies - 1 through 6 (of 6 total)
  • I would also like to know how to do this: make it so when you click an image you are taken to the previous one. I’m using WP 1.5 … no idea what sort of coding I would need to acheive this effect though.

    Any advice would be awesome. 🙂

    OrchidRed check out this thread. It may help you since you are using WP 1.5

    Good luck!

    On the other hand, I still need help with WP 1.2!! I’m trying not to upgrade to 1.5 as you can tell. In the end I may have to, but can anyone still help?


    Thanks to Kafkaesqui, the mystery has been solved! If you are still using WP1.2, the answer to the riddle can be found at this thread.

    Thanks to charbyte for pointing out Pat’s article at for WP1.5 users.

    To summarize:
    Photobloggers who want their visitors to click the image in order to navigate to the previous image, can now do so!
    For WordPress1.5 users, visit
    For WordPress1.2 users, visit this thread.

    Hope this helps 🙂

    I don’t understand why you don’t just do a JavaScript Loop. When you get to the end, there is a 404 error.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Click Image For Previous Post (photoblog)’ is closed to new replies.