A little lost – believe I’m almost there though. I’m trying to make it so the next and previous links don’t show unless there is more than one post.
<?php if($numberofposts != "1") : ?>
<a href="#" class="prev">Prev</a>
<?php endif; ?>
Hopefully it’s just something simple I’m overlooking.
Check to see if $numberofposts contains a number (instead of a string). It probably does. If so, you will want to rewrite your code like this:
If it doesn’t contain a number, you should probably rewrite whatever function it’s pulling from so that it does.