WP-PageNavi plugin doesn’t work with multiple pages of search results

I discovered that the problem was in my theme’s searchform.php file. I changed the form method from “post” to “get.” Now search queries show up in the url address.
Before:
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
After:
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get">
Problem solved.

Leave a Comment