How to put pagination for post in WordPress template

This is very important for put pagination for post.

Just follow below step
1) Put below code in functions.php file of your current active theme.
2) Call this function after complete your while loop

Download this file and put function in your current active theme functions.php file.

Download file