Author: Piet Bos
Stable Version (via WordPress Plugins Repository)
The SO Related Posts plugin puts you in control on what really is related content.
The SO Related Posts plugin is an Extension for the Meta Box plugin and puts you in control on what really is related content.
With the plugin installed you will find a Related Posts box underneath the Post Editor. Here you will see a checkbox which you can use to turn showing the Related Posts on or off as well as a neat dropdown menu that shows up to 999 of your published Posts.
On the frontend the Related Posts are shown in their own class with an unordered list, right after the_content()
. The class will use the styling of your theme and you can style it further to your own liking.
Since v1.1.0 I integrated the TGM Plugin Activation Class to install the Meta Box plugin (where this extension depends on) instantly from within your website.
Since v1.3.0 I have added a Settings Page where you can change the default title "Related Posts" into something of your liking.
Since v1.3.2 I have added a checkbox with which you can turn the Related Posts on or off per Post
Since v2.0.0 I have integrated the options that previously were only available in the PLUS version. The latter has been retired. The functionality we added are custom styling and the possibility to add the featured image to the related posts output.
The idea for this plugin came to me as I was thinking about an alternative method to make a Related Posts plugin that doesn't query the database n times looking for related posts by tags, categories or what not. Most of the existing Related Posts plugin have an incredible (negative) impact on your site speed, so the benefits don't outweigh the costs.
I thought that it would be much more flexible if the user can choose his/her own Related Posts from a simple Posts drop down menu.
Among heaps of other very useful fields, the Meta Box plugin comes with both a Post field and a Repeater field. I have combined these two and made it so that you can now show as many Related Posts as you want underneath the current Post.
On the Settings Page you can change the title that shows on the front end above the list of Related Posts. You can also choose whether or not to include a small thumb of the Featured Image. This thumb is dynamically resized using the Aqua Resizer-script. Last but not least you can style the output of the SO Related Posts right from the settings page and I have included some samples to get you started! Have a look at the Screenshots (at the bottom of this README file) to see the Settings.
Yes, since v1.3.0 I have added a Settings Page where you can change the title that shows on the front end above the list of Related Posts.
First update to the latest version. If after updating it still shows, then you need to uncheck the checkbox that shows under your Post.
This plugin is an Extension for the Meta Box plugin. If you don't have that installed, this Extension is useless. If you click on the link that shows with the error message you will go to a new page "Required Plugin" to install the Meta Box plugin.
Yes, you can. Via the Settings page you can add your own styling. These styles will only be added to the page(s) where the plugin is active.
Please open an issue here on Github
This repo is open to any kind of contributions.
- License: GNU Version 2 or Any Later Version
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
- Donate link: http://so-wp.com/donations
- improve codebase; thanks to tip from Julien Maury
- integrate plugin with features (featured image thumbnail, styling) that were previously only available in the Plus version.
- regenerate .pot file and Dutch translation
- replace icon on settings page
- rewrite readme files
- changed screenshots
- update TGM-Plugin-Activation class to 2.5.2 fixes issue #4
- TWEAK: header settings page; only showed half logo after 1.4.2 update
- changed header settings page to h1 (https://make.wordpress.org/plugins/2015/08/03/4-3-change-to-plugin-dashboard-pages/)
- show 4.3 compatibility
- revert to semantic versioning
- modify metabox registration replace deprecated
pages
withpost_types
- added new MetaBox feature of sort_clone
- update TGM Plugin Activation class to 2.4.1 which fixes reported XSS vulnerability
- changed logos
- tested up to WP 4.2
- bumped minimum required version up to WP 4.0
- remove function that disables auto-activation of Jetpack's related posts module -> doesn't work, stop trying, waste of time
- add wpml-config.xml file to be able to translate the title on sites that have WPML installed
- increase min. required WP version to 3.8
- added filter to prevent Jetpack related posts module from auto-activating
- move minimum WP version up to 3.7
- modify default settings function
- updated TGM Plugin Activation class to 2.4
- update language files
- added SO PLUS reference and discount coupon
- update language files
- fix title bug
- add checkbox to turn Related Posts on/off per post without losing the Posts you already have set. (default off)
- bugfix, set default output title if no title has been filled in
- add settings page to enable changing the title output on the front end
- update language files
- update SO WP icon
- change priority from 1 to 5 to improve so_related_posts_output content filter
- add conditional is_main_query()
- unset foreach call
- security fix: escape text/url/title-strings
- add Dutch language files (.po/.mo)
- add .pot file
- integrated TGM Plugin Activation class by Thomas Griffin - https://github.com/thomasgriffin/TGM-Plugin-Activation
- added "Please select..." placeholder text
- first release
Preview of the meta box in the backend and the output on the front end.