Forums

[resolved] Using Without The Image Displaying? (4 posts)

  1. andymacdonalduk
    Member
    Posted 1 year ago #

    Hey Guys,

    I would like to display a link to the next image on my image.php page. I believe the piece of code I need to use is <?php next_image_link() ?>, but that is outputting the image of the next post.

    All I want is a link which reads "Next Image" which links to the next image. Same for the previous image.

    Is that possible, without the actual image of the next post showing up please?

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    http://codex.wordpress.org/Function_Reference/next_image_link

    Not a lot of info there, so I'm guessing here

    <?php next_image_link( none, 'Next Image'); ?>
    <?php next_image_link( false, 'Next Image' ); ?>
    <?php next_image_link( 0, 'Next Image' ); ?>

    something like that, one (or all of them) should work?

    http://codex.wordpress.org/Template_Tags/previous_image_link
    is related, but has more info

  3. andymacdonalduk
    Member
    Posted 1 year ago #

    Ah, that did the job perfectly. Thank you very much sir.

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    Glad it worked out! You're very welcome!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.