• Resolved justinede

    (@justinede)


    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.

  • The topic ‘Newer Posts – Default WP Nav’ is closed to new replies.