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.
Related Posts:
- History of page, interval of years
- Pass PHP variable to javascript
- Is there a way (plugin?) to restrict a user to being able to edit just one page?
- Creating a WordPress admin page without a menu for a plugin
- Search and replace text across all posts
- jQuery plugin only in one page/post
- How would implement StackExchange ‘Questions with similar titles’ for the FAQ on my wordpress site
- How to get posts by content?
- How to create a Page alias in WordPress
- Include images from pages in wp search.php results in default wp search
- Problem with Search Results in WP (not displaying the full posts)
- How to extract images of post and pages excluding header and logo image in wordpress?
- How to improve WordPress search
- How to exclude a widget from page 1 of a paginated post
- add_meta_box Callback not being called
- Creating search filter through plugin
- Creating a menu page in a Object Oriented developed plugin
- Distributing and packaging plugins
- Automatically adding post and pages to new blog setups
- Automatically adding category filter based on search string
- How can I reuse the WordPress search form for a custom plugin / widget?
- Custom Taxonomy Tag Search
- Wondering what these multi-colored extra pages are?
- Create a custom page template inside my wordpress plugin
- What is the best way to mimic a search query within a plugin
- Is there a way I can find wordpress posts that don’t contain a word?
- Search is not working on plugin directory
- Do action only on certain front end pages?
- How to delete page by deactivating plugin
- Create page from plugin, but have it completely hidden
- How to add subcategories to the blogroll?
- Proper way to replace the_content only for pages created by custom plugin
- Add menu page issues (permissions & position)
- WooCommerce search products between price range using WP_Query
- Would Gutenberg be considered a PlugIn?
- I need help locating a URL that is on my site map, but that I can’t find in my WordPress dashboard
- Show author on every sub-page
- Send admin an email when a user’s search has no results
- One sub site is slow while all others load fine, same theme & plugins [closed]
- Making my plugin create a page?
- Add Content to Content()
- How to set “split_on_numerics” to false in ElasticSearch mapping using ElasticPress? (for proper SKU search in WooCommerce) [closed]
- How to create wordpress page that lets users create their own quiz? [closed]
- Search and Filter Plugin – How to disable redirection
- WordPress Multi-Step Product Search
- How to create plugin auto create page wordpress?
- Change website directory safely to add a static page on startup
- Price comparison table based on Custom Post Type?
- How to dynamically change spots of text in custom page?
- Custom page in plugin visible in menu
- Pasting this PHP breaks my page. Why?
- Modify pages widget and make a plugin?
- How do I create pages within a WordPress post?
- Woocommerce checkout page broken when set as a checkout in woocommerce settings [closed]
- Custom plugin places html head content in body
- Best approach to make all tags searchable by the wordpress search function
- How to search post titles with whole words only, but not the exact word only?
- RSS feeds for specific topics
- Use get_pages() before another plugin modifies it
- how to show all posts of each category in pages
- WC Fix Attributes – ‘Add New’ Not Searchable/Delayed
- Give custom page template a custom post ID
- Bookmarking custom template pages which all have the same page ID
- Randomize post (and page) IDs on generation
- WordPress Frontend Page using Plugin
- Powerpress upload a podcast without creating a post for it
- Allow a page to be edited by a specific custom role
- Failed to load resource: the server responded with a status of 500 () post.php
- Accounting for search terms that may include a space, using SearchWP
- Page Contents showing in Footer Area
- Page takes on two different formats
- How to disable users to view Other pages
- Include images from pages in wp search.php results in default wp search
- Get content and send to 3rd party
- How to make wp multisite subdomain exist search
- Remove Url Parameter WordPress
- Multiple calling javascript from shortcode in one page
- Best approach to serve static content within a regular page
- How can I remove this sidebar from my Search Results page?
- Include post_date in search
- How to order users alphabetically by name? in plugin UPME
- Hidden Some Setting on Post or Page [duplicate]
- Get page content by ID (from a plugin)
- How to set up php,javascript and css to allow for our finished product to be displayed within a page?
- How to tell which Plugin is displaying?
- Is there any simple wordpress search template that works with existing searchforms?
- Wp Pagenavi how to display all results
- WordPress ultra slow if I click on posts?
- Redirect url in plugin to somewhere else?
- Display static pages instead of category, in code
- Strange Search Query Appearing on Google Index – “/?q=Save+Us+From+Berlusconi”
- wordpress Search function is not working
- Static page with formatted post list
- Additional scrollbar appears inside the browser on every page + lag scroll -Winner theme
- Attachement title in wpallimport
- Meta box not displaying on the plugin page
- Create new page without menu in custom wordpress plugin
- How to access the page without registering in wordpress
- Can we install 3d product configurator into wordpress
- LiteSpeed cache image Optimization