WP Search Extracts
WP Search Extracts
Description
When displaying results from a search many people prefer to display the section of the resulting
post/page that includes the match, rather than the full post or standard excerpt. This plugin adds
a filter to process search results and only display the content either side of the first result
for the given search.
To Do
- Add automated tests
- Make the padding around results value configurable
- Solicit user feedback on further options
Installation
- Upload
wp-search-extractsto the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
Reviews
Changelog
1.0.1
- Fix issue where matched term is near the beginning of the string, which could cause duplication in results (thanks to Ben Walker)
1.0
- Consolidated code for first release