How to add navigation arrows to manually slide through posts?
Your code suggests that you want a list of 5 most recent posts. There is no navigation for a list, unless you use paging. It is different, when you display a single post page. Then you can navigate to ‘next’ or ‘previous’ post, with help of the_post_navigation() template function. See it in Code Reference. I’ve … Read more