only show navigation if more than one post (on single page)? (2 posts)

  1. Denney
    Posted 10 years ago #

    I'm showing the navigation links in my theme on the single post page but when there is only one post on the website, there is a gap at the top where the links would be.

    Is there any way to only show the navigation links IF there is more than one post?

  2. bookchiq
    Posted 10 years ago #

    You could do a quick database query to see how many published posts there are, and output (or not output) accordingly.

Topic Closed

This topic has been closed to new replies.

About this Topic