Calling the Next category link on an archive page – WordPress
The problem here is that you’re not using the function correctly – it returns an object, and won’t output anything by itself. You also need to ensure that $slug and your other arguments are set & have values, otherwise you’ll just trigger an error. Personally, I’d go one step further and use the following function … Read more