We're making a portfolio with pages in a directory like:
/portfolio/a-company-name.php
/portfolio/another-company-name.php
/portfolio/yet-another-company-name.php
We want to build "next" and "previous" links on each page, where people can navigate to the next or previous page in the directory. Any ideas?
I would think the only little snag might occur on the first and last files in the directory. So I guess there'd have to be an "if statement" of some sort to only build next/previous link if there's actually a next/previous file in the directory. Or, even better, to where it would just endlessly loop....for example if you were on the last file in the directory, and the "next" link would simply go to the first file.