Restrict next_post_link() to current category
OK, so there’s a problem with Codes in this part, I guess. The Codex article on Next and Previous Links contradicts the article specifically on next_post_link() In that article you can clearly see, that it looked a little bit different. In the part describing next_post_link there is a note: Deprecated: previous_post() and next_post(). Use: –> … Read more