Just a little lost - believe I am almost there though. I am attempting to make it therefore the next and former links do not show unless of course there's several publish.

<?php if($numberofposts != "1") : ?>
    <a href="#" class="prev">Prev</a>
<?php endif; ?>

Hopefully it is simply something simple I am looking over.

Determine if $numberofposts consists of several (rather than a string). It most likely does. If that's the case, you will need to rewrite your code such as this:

<?php if($numberofposts > 1) : ?>
  <a href="#" class="prev">Prev</a>
<?php endif; ?>

Whether it does not have a number, you need to most likely rewrite whatever function it's tugging from to ensure that it will.