SearchWP Related Content
SearchWP Related was developed to function with a minimum of administrative burden while retaining complete adaptability to user preferences. Keeping visitors engaged on your site by displaying material that is relevant to their interests is a wonderful strategy. This SearchWP extension will likely save you some overhead if you are currently using another system for related material. This is because it will utilise the content index that was already produced by the SearchWP extension.
Setup & Integration
Related is an independent WordPress plugin that operates in tandem with SearchWP, much like all of the other SearchWP Extensions. After it is installed, Related does nothing by default once it is activated. You are able to look at the settings screen (found within the Extensions dropdown on the SearchWP settings screen) Note that when Related is activated on a website that already has content, the entry titles will be utilised as the default keyword list to find related content. Within the folder holding the Related plugin is another folder titled templates. This default Related template (related.php) is located within this folder and is used to show Related content. ~/wp-content/plugins/searchwp-related/templates/related.php The following describes the information contained in this file: related.php Do not directly change this file in any way. Any modifications that you make to this file will be lost if you install a newer version of Related since it will overwrite your changes. You can instead use the template loader that is included into Related to install your own custom template within your theme. Related comes with its own template loader. Create a new folder within your theme, and then paste a copy of the default Related template into that new folder, preserving the same filename as the original. This will allow you to change the output of the Related content. ~/wp-content/themes/my-theme/searchwp-related/related.php This template can be completely modified to fit your preferences and requirements. It is built on The Loop, and you have the same amount of flexibility within the template that you would have with any other theme template.
Template Options
Even though the template that is used to display Related information is, for the most part, a normal theme template, you have the ability to modify the behaviour of Related by modifying the remark block that is located at the very top of the file: /** * SearchWP Engine: default * Maximum Results: 3 */ By modifying the relevant line at the very top of the template, you will have the ability to customise both the SearchWP engine that will be used and the maximum number of Related entries that will be displayed. Add a hyphen and the post type to the end of the file name to personalise the results templates for each post type. For instance, if you were to create a template with the following filename: /wp-content/themes/my-theme/searchwp-related/related-page.php, it would look something like this. Only Pages would make advantage of this feature. The base template would be used for all of the other post types.
Reviews
There are no reviews yet.