SearchWP Associated Content material was constructed to work with minimal overhead, whereas permitting for personalization to any diploma. Exhibiting associated content material to guests is a good way to maintain consideration in your web site! For those who’re already utilizing one other system for associated content material, this SearchWP extension will seemingly prevent some overhead by using the content material index it already created.
Setup & Integration
Like all SearchWP Extensions, Associated is a standalone WordPress plugin that runs alongside SearchWP. As soon as put in, Associated takes no motion by default. You’ll be able to view the settings display (discovered inside the Extensions dropdown on the SearchWP settings display) Word: When activating Associated on a web site with present content material, entry titles will probably be used because the default key phrase record to seek out associated content material. Within the Associated plugin folder there’s one other folder named templates containing this default Associated template (associated.php) used to show Associated content material. ~/wp-content/plugins/searchwp-related/templates/associated.php The contents of this file are as follows: associated.php Don’t edit this file instantly. For those who set up an replace to Associated, any customizations you make to this file will probably be overwritten! As an alternative, you’ll be able to make the most of the template loader constructed into Associated so as to add your personal customized template inside your theme. To customise the output of Associated content material, create a brand new folder inside your theme and paste a duplicate of the default Associated template into that folder, preserving the identical filename: ~/wp-content/themes/my-theme/searchwp-related/associated.php You’ll be able to totally customise this template to fulfill your wants. It’s based mostly on The Loop, and you are able to do something inside the template you’ll in another theme template.
Template Choices
Whereas the template used to indicate Associated content material is usually an ordinary theme template, you’ll be able to affect how Associated behaves by enhancing the non-compulsory remark block on the high of the file: /** * SearchWP Engine: default * Most Outcomes: 3 */ You’ll be able to customise the SearchWP engine used, and the utmost variety of Associated entries displayed by enhancing the relevant line on the high of the template. It’s also possible to customise outcomes templates per submit kind by appending a hyphen and the submit kind to the file title. For instance, for those who had been to create a template with this filename: ~/wp-content/themes/my-theme/searchwp-related/related-page.php It will be used just for Pages. All different submit sorts would use the bottom template.
There are no reviews yet.