• Resolved davidandre

    (@davidandre)


    Hi everybody,
    i am really trying hard but i don t get it:
    i ve got this code:
    <div class=”nav-previous”>Noticia anterior:

    <?php next_post_link(‘%link’); ?></div>
    <div class=”nav-next”>Siguiente noticia:
    <?php next_post_link(‘%link’) ?></div>

    it works fine but i would “Noticia anterior:” to disappear if there is no previous post , and,”Siguiente noticia:” to disappear if there is no next post….
    I am completly lost .any help would be very appreciated,

    cheers,
    david

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘next_post_link function…’ is closed to new replies.