WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Denney
    Member
    Posted 8 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
    Member
    Posted 8 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

Tags