I'm trying to use the built in search, but it's not working on any page other than the base URL. When you use the search form instead of posting the query to: baseurl.com/?s=search_term it posts it to the page the user is on: baseurl.com/current-page/?s=search_term
This is the code I'm using:
<form role="search" method="get" id="searchform" action="<?php bloginfo('url') ?>/"> <input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" size="15" placeholder="Search Events"> </form>
I've seen many posts on search forms not working, but as you can see, I've made sure the action is correct and the wp_specialchars is correct. Also, I've tried hard coding the base url into the action, but it still does the same thing.
Any ideas of what I can might be the issue?