This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

WP Search Extracts


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


  1. Upload wp-search-extracts to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress


There are no reviews for this plugin.

Contributors & Developers

“WP Search Extracts” is open source software. The following people have contributed to this plugin.


Translate “WP Search Extracts” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Fix issue where matched term is near the beginning of the string, which could cause duplication in results (thanks to Ben Walker)


  • Consolidated code for first release