• Resolved FROM_ROB

    (@from_rob)


    Hello,

    I am trying to set up a navigation between posts using the following code:

    <?php if(get_previous_posts_link()) { previous_posts_link('<    '); } else { echo '<    '; } ; ?>
    
    <?php the_content(); ?>
    
    <?php if(get_next_posts_link()) {next_posts_link('    >'); } else { echo '    >'; } ; ?>

    Here is the website that this is implemented in to give a better idea of how it is being used: http://www.brendanhuntley.com/

    What I would like to do is have the right arrow on the last post return home instead of appearing but not link to anything since there are no more posts.

    Could someone please suggest a way to make this work since I have been not able to figure it out.

    Thank you in advance,
    Rob

  • The topic ‘next_posts_link returns home if no more posts’ is closed to new replies.