REST API Search
This is only for Version 2 of the REST API Plugin
This adds the missing functionality of Search into the WordPress REST API.
The issue being with the current REST API Version 2, you can only search on a per post_type basis.
What this plugin does.
Adds the search functionality for all posts types except revisions and types with ‘exclude_from_search’ set to true.
In case of a multi word string, just replaces the spaces with plus signs.
Also adds easy paging
This section describes how to install the plugin and get it working.
- Upload the plugin files to the
/wp-content/plugins/rest-api-searchdirectory, or install the plugin through the WordPress plugins screen directly.
- Activate the plugin through the ‘Plugins’ screen in WordPress
- How do I use this plugin?
This plugin is meant to be used by experienced developers. You can access the search by going to your WordPress URL, and adding the following to the end of the URL: /wp-json/wp/v2/search/
After the search/ you put any keywords you’re searching for, replaces spaces with plus (+) signs.
Contributors & Developers
“REST API Search” is open source software. The following people have contributed to this plugin.Contributors
Translate “REST API Search” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
- Initial Version
- Fully working version which searches all post types except revisions and types with ‘exclude_from_search’ set to true.
- Restructured code to allow for custom fields added in by other plugins
- Bug Fix – namespace variable of class needs to be protected.
- Now allows for encoded characters and numbers in the url
- WordPress’s posts per page settings now are used.