SearchWP Related Content
Use SearchWP to power related content on your site! SearchWP Related was built to work with minimal overhead, while allowing for customization to any degree. Showing related content to visitors is a great way to keep attention on your site! If you’re already using another system for related content, this SearchWP extension will likely save you some overhead by utilizing the content index it already created.
THE PLUGIN FEATURES:
Setup & Integration
Like all SearchWP Extensions, Related is a standalone WordPress plugin that runs alongside SearchWP. Once installed, Related takes no action by default. You can view the settings screen (found within the Extensions dropdown on the SearchWP settings screen)
Note: When activating Related on a site with existing content, entry titles will be used as the default keyword list to find related content.
On this screen you can:
- Enable auto-appending of Related content per post type
- Exclude content (comma separated IDs) from Related content per post type
- Limit potential Related content (comma separated IDs) per post type
When auto-append is enabled for a post type, Related content will be automatically output when viewing a single entry of that post type.
Customizing output: the template loader
As is the case with Live Search, Related also uses a template loader to allow for full customization of Related results.
While the template used to show Related content is mostly a standard theme template, you can influence how Related behaves by editing the optional comment block at the top of the file:
* SearchWP Engine: default
* Maximum Results: 3
Customizing input: defining Related content
Related by default will build a keyword list from the title of your entries. Common words are removed so as to increase relevancy of Related results.
A set of three sample results are displayed, allowing you to customize the keyword(s) you’re using if you’d like. This is just a sample, the template loader controls how the results are displayed on the front end, and SearchWP determines which entries to display at runtime.