Each portfolio item is a Wordpress post, and they’re rather large, with screenshots and sometimes multiple images, so I needed a way to indicate more content below, and to make it cleaner I wanted to avoid a lot of scrolling. I decided that a simple inline link to the next post on the page would be cleanest.
Unfortunately WordPress doesn’t come with such a function out-of-the-box; after much searching and head-scratching, I figured it out:
<a href="#post-<?php echo $wp_query->posts[$wp_query->current_post + 1]->ID; ?>" title="View next item below">Next ↓</a>
Ultimately it’s very simple – the PHP in the above snippet displays the post id of the next post (which is, duh, the current_post + 1). This PHP is inserted into an inline link within the WordPress Loop and viola! The link created jumps to the next one on the page.
I added a little more logic to the page – the last item on the page doesn’t need a link like this, so for that one I created a link back to the top of the page.
Hope this helps anyone searching for a similar solution!