Support » Themes and Templates » only show navigation if more than one post (on single page)?

  • 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?

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

Viewing 1 replies (of 1 total)
  • The topic ‘only show navigation if more than one post (on single page)?’ is closed to new replies.