you can try writing something that appends to your query var when the search is initiated something as such as:
function gt_search_filter($query) {
global $wp_query;
if ($query->is_search)
if($_REQUEST['s']){
$wp_query->query_vars['s'] = $_REQUEST['s'];
}
return $query;
}
add_filter('pre_get_posts','gt_search_filter');
this worked for me but remember this is quite insecure and not advised what other thing you can do is adding more layers of filterations and everything before you finally give it to the query string.
Related Posts:
- How to search post by ID in wp-admin
- wp_list_table search box does not show
- WordPress isn’t reflecting changes I make to a specific file via FTP [closed]
- WordPress (admin) posts search GET request filter
- making users.php search include a specific user meta data field without messing with the SQL query itself
- Search plugin form on “Add Plugin” page not working
- Extend user search in the users.php page to allow for searching by role and excluding specified email domains from the “users search” input box
- Extend user search in the Wp backend area on the users.php page to allow for searching by email domain and role from the “users search” input box
- Searching for a custom meta from user.php in the admin
- Can I rename the wp-admin folder?
- How to restrict dashboard access to Admins only?
- How to remove screen options and help links in the admin area?
- I’m getting a 404 message when I try to access wpadmin
- wordpress wp-admin css not loading
- wp_list_tables bulk actions
- How do I find all admin users using phpmyadmin?
- wp-admin produces a 302 redirect to itself
- create users to site with specific language
- Restrict access to admin but allow admin_post hook
- How to set custom editor style when editing the homepage?
- How to disable or hide “collapse menu”
- Login to wp-admin “redirect_to” points to wrong URL after migration
- TinyMCE Autoresize
- WordPress wp-admin suddenly lost its style
- Activating Child Theme Breaks Website, Blank Page, Error 500
- Create Read Only Admin
- wp-admin is redirecting to back to home page (localhost)
- After changing Site url to https, can’t access login page
- Add custom content in user-edit.php page
- How to use Yoast SEO backend in english even if WPLANG variable is not english?
- Rename W3 Total Cache admin menu
- How can I add my script to admin using script-loader.php?
- Admin first hook that outputs HTML?
- Cloned a site but can’t log in – redirecting to old site
- Can I edit the wp_post > post_content right before its inserted/updated?
- To remove default dashboard items and add quick draft widget for custom post type
- I get “The PHP Date/Time library is not supported by your web host.” on my CentOS host, what library to I need to install to add support?
- How can I allow core, plugin, theme update checks only for selected admins?
- wp_before_admin_bar_render action not working in back office
- Why am I unable to login after converting to www?
- why my menu is not appearing on the admin panel
- Can’t access WordPress as an admin – but I can log in as a user!
- Locked Out Of WordPress Admin Dashboard After Server Move
- Subscribers become Authors after Upgrade? / Mass Update of Users?
- admin_post action not usable if admin access denied to user
- Can’t log into wp-admin after migration from localhost to server
- Adding Custom Capabilites
- Why is unfiltered_upload not working despite being enabled?
- List All Enqueued Scripts and Styles
- Can I add my own profile.php?
- Wp-admin is giving me an error “Sorry, you are not allowed to access this page.”. I do have access to the wp-admin besides the dashboard itself
- Linking table cells to network folders
- Remove bulk option row
- Admin menu in front-end
- Require Login Redirect to Login Page
- ASCII to Unicode conversion and then save the data into database using WP post editor field
- How to fix ob_end_flush() failed to send buffer of zlib output compression (1)?
- 100+ terms in any taxonomy slows down post updates?
- Is WordPress Suitable for my site?
- Delete the “wp-admin” folder – what could go wrong?
- Nickname field isn’t appearing in Admin
- How to Find The Email of a WP Admin Account
- how can I change the font on Edit Post area (admin dashboard)
- External HTTP API calls slowing down WordPress admin [closed]
- Why is my ‘export’ option missing?
- jQuery UI Datepicker error
- Change users.php WP_User_Query
- Blank page when viewing wp-admin
- Is it possible to display my theme sidebar in wordpress admin?
- wp-admin: “Sorry, you are not allowed to access this page.”
- How to access wordpress from domainB which is installed at domainA
- Search & column order by meta value in admin
- How to optimize the opening speed of admin panel?
- WordPress /wp-admin redirect to wrong port in docker
- How to change the URL of sub menu page?
- Change wordpress admin home page
- Strange wp admin edit buttons issue
- Cannot access wp-admin after migration to another place
- Regular users logs in as ADMIN if Admin logged in recently
- Enable Excerpt field inside the post editor for pages
- Failed to load resource: the server responded with a status of 500 (Internal Server Error)
- Strange Popup Ad on my WordPress Admin Dashboard
- WordPress switch domains
- Not able to access WP admin Page, redirected and a drop down login menu appears 401 error
- OSX El Capitan local install Maximum upload file size: 2 MB But php.ini set to 64M
- Get Post ID in Admin Edit screen otherwise generate it?
- Cannot login in WordPress even after changing hash password in phpmyadmin
- Is it possible to outsource wp-admin to another server?
- Wp mwnu not works at all
- Can’t log into WordPress after domain change
- Search box for hierarchical taxonomies in admin interface
- Custom Admin Message from external source to multiple users
- How can visitors redirect wp-admin to the homepage?
- Creating your own options-general.php page
- I want to know if it’s good for SEO [closed]
- My website’s wp-admin redirects to another website’s wp-admin after pointing the site url to a subdirectiory
- My website does not load since two days!
- After Upgrade: $user becomes unknown (id: 0) after successful login?
- Redirect users based on their roles, is_admin()
- insert an admin table inside another admin page