If you leave the action empty, the form will submit to the same page.
So just do this:
<form action='' method='get'>";
Related Posts:
- Contact Form on WordPress Sites?
- Page returns 404 with POST variables, but not without
- Manual excerpts for pages not working on Search
- Custom Search Page Pagination Not Working
- When I split a large post with , how can a search locate users to the correct page?
- Two Search pages, One search form
- Creating a form contact page?
- load common thank you template with different content for different pages
- How get get list of pages in ajax search
- Send mail from page using wp_mail
- Getting to a specific page on website using specific code instead of navigation bar
- Pass data from one page to anothe file/page in wordpress
- Search child pages from a specific page parent
- Add Filter to Ignore a Post/Page or a Number of Post/Pages
- Page 2 of Search Results shows homepage
- Search results to be only posts & children of page ID
- Search anything from a Child and Sub-Pages of their Parent page
- WordPress form submit to custom page template does not work
- Add pagination to search.php page
- Search Page: activate html code if the tag is on the page
- If searched in a category show different 404 page
- Search page different title per results
- search page different results
- Create a new page for each form selection
- simple category search form returns full text – but I need excerpts
- How to enable automatic search results in WordPress
- Save search criteria per user and show on custom user page
- Edit the text location of a form
- Show more than 20 items in pages or posts edit dashboard
- How to display last 3 posts (recent posts) in a static page?
- Editing Complex Pages in Visual Mode
- Multiple areas of dynamic content in a page
- How to create virtual pages with information from user meta profile fields?
- Private pages that work when you are not logged into WP admin
- How to limit page pagination
- Remove specific page/post from feed
- Want Page Title to show on menu, but not on page
- Slug is redirecting to 404
- Include content from one page to another
- Can I include Javascript/jQuery in a page?
- Creating a custom search form
- conditional tags- how to use with shortcodes
- List all private pages user has access rights to read
- Access the same page from multiple urls (wildcard)
- How to load WP categories into array for autocomplete?
- How to update the counter of private pages in the dashboard?
- Any Ideas for Including “More Tag” with get_pages($args)?
- Using in-build Visual Composer param types in custom param types
- Google Analytics tracking code on just one page?
- Edit custom HTML page from WP admin dashboard
- get_pages() as per custom menu order
- Display child pages in sidebar of parent page in wordpress
- How to use is_admin in page content?
- Adding a Calculator to a WordPress Page
- Why isn’t WordPress respecting my HTML?
- From a developer’s point of view what are the differences between pages and posts? [closed]
- Page titles for internal classification of landing pages
- Function to incorporate an option in each Page
- Displaying direct children of other pages on homepage
- How to bypass 404 for certain pages/posts?
- Displaying Current Page Number Conditionally
- Multiple Loops That Pull Pages (Child/Grandchild) While Styling the First Entry
- How do i pick the pages in 20-11 header?
- page template – undefined structure in source code
- How to show page title with capitalization only as I typed in?
- Create custom page to author.php
- My worpress search page is showing no results
- Make Audio Element Persistent Across Pages
- Show children connected to parent pages
- How to get an array of pages ID by some page’s slug and all its children pages in get_posts() function?
- Restrict specific private page to a specific user
- How to remove a page in its entirety
- Editing Pages Icons Are Not Showing Up – Why is this happening?
- How to add custom php file to right sidebar?
- Why my home page doesnt work?
- Mailchimp RSS feed work with single wordpress page?
- Cannot pull WYSIWYG content
- Creating content using wp-admin pages
- change page status with code
- How to limit the pages shown in the page manager to those created by the logged in user?
- Is it better to set social media sharer in entry-footer.php or comments.php in WordPress blog?
- Get All Pages as strings in array
- Attach link to pages accoding to tags
- Issue with page not erasing
- My page won’t publish
- Pages redirecting to homepage
- Echo page path suffix only – not the title, path or permalink
- Why does the default Insert/edit link function in Visual mode in posts or pages produce full urls?
- Custom admin menu for a selection of pages
- how to print the content of pages inside the front end area
- How do I make just one of my pages a Blog Page?
- Standard way of creating profile pages with custom content for each user?
- How to show parent pages on a specific page if user is logged in?
- Trying to put a search page on site
- How To Display Pages Based On Subscriber Signup Date
- How to preview a page instead of a category?
- Display list of posts with x tag within a page?
- Custom wp_list_pages() function
- Custom SINGLE page with custom metaboxes and custom template
- How to change the default location where new post gets stored?