WordPress.org

Ready to get started?Download WordPress

Forums

Click Image For Previous Post (photoblog) (7 posts)

  1. yamel
    Member
    Posted 9 years ago #

    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

  2. OrchidRed
    Member
    Posted 9 years ago #

    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. :)

  3. yamel
    Member
    Posted 9 years ago #

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

    Good luck!

  4. yamel
    Member
    Posted 9 years ago #

    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!

  5. yamel
    Member
    Posted 9 years ago #

    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 blueblurry.com 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 blueblurry.com
    For WordPress1.2 users, visit this thread.

    Hope this helps :)

  6. zaur
    Member
    Posted 8 years ago #

  7. MommySolution
    Member
    Posted 8 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic