Forums

[resolved] Newer Posts - Default WP Nav (1 post)

  1. justinede
    Member
    Posted 1 year ago #

    Hey Guys,

    I need help with my theme.
    Currently, I have the default wordpress navigation set up (newer and older posts links)

    <div class="pagenavigation2">
    	<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
    	<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
      </div>

    How do I make it so if there arent any newer posts (home page), the div with the newer post link wont show?

    The reason I am asking is because even if there arent any newer posts, the div is still there and the styling to that div is still there.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags