Portfolio Posts Pagination - Add Pagination for First and Last Posts for Jupiter 6


#1

When viewing Single Portfolio Posts, our client is looking to add additional functionality for the first post and the last post.

Example Scenario:
You’re viewing the first portfolio page and it shows the “next pagination” arrow to go to the second portfolio post. The desired functionality is to have the “previous pagination” arrow added to view the last portfolio post.

Same idea for the last post, once you reach the last portfolio post, there would be a “next pagination” arrow that would link to the first portfolio post.

I found the file that’s responsible for the pagination:
/wp-content/themes/jupiter/framework/functions/post-pagination.php