Next & Previous WordPress Post Links

By Kieran Hunter

If you want to add some next & previous WordPress post links on your page in WordPress, here’s how you can do it.


Place the below code in your functions.php. If you want text on your icons you can edit the existing code where it says ‘edit or remove this text’ but I have styled these ones so they don’t have it.


Place the below code where you want the next/previous icons to appear, normally it’s in your content-single.php, your ‘single post’ page.


For the font family you can use any sort of icon font set, for instance; Icomoon like I have, or Font Awesome is also good.

Any questions, or guidance please let me know in the comments below.

Leave a comment

For any enquiries or to say hello, email me at