I am new to wordpress and to the forum. I am currently trying to build my site and I am having issues with the loop on the search, archives, and category pages. I am trying to add the wp_pagenavi plugin but I am having some issues.
On the search and archive page, the plugin is not working. When you click to go the next page I get the same content as page 1.
Here is the code for the search page (search.php): http://pastebin.com/Uc8ZcvSb
Here is the code for the archives page (archive.php): http://pastebin.com/eEX2K9XK
On the Category page, when I click on the next page I get a 404 page.
Here is the code for the Category page (category.php): http://pastebin.com/8zT0tUXy
Any help is appreciated. If there is a better way of doing what I am doing please let me know.