Skip to content
This repository has been archived by the owner on Jun 4, 2019. It is now read-only.
/ so-related-posts Public archive

The SO Related Posts plugin puts you in control on what really is related content.

Notifications You must be signed in to change notification settings

senlin/so-related-posts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SO Related Posts

plugin version

May 14, 2016: No longer in active development, use at own risk

Last updated on 2016.01.10
requires at least WordPress 4.0
tested up to WordPress 4.4.1
Author: Piet Bos
Stable Version (via WordPress Plugins Repository)

The SO Related Posts plugin puts you in control on what really is related content.

Description

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.

Background

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.

Frequently Asked Questions

Can I change the default title?

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.

I have not added any Related Posts, but the plugin shows the current post as 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.

Why is the plugin showing an error message after activation?

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.

I don't like the output on my Single Post, can I change anything?

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.

I have an issue with this plugin, where can I get support?

Please open an issue here on Github

Contributions

This repo is open to any kind of contributions.

License

Donations

Connect with me through

Github

WordPress

Website

Changelog

2.0.1 (2016.01.10)

2.0.0 (2016.01.08)

  • 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

1.5.0 (2015.12.17)

  • update TGM-Plugin-Activation class to 2.5.2 fixes issue #4

1.4.3 (2015.08.12)

  • TWEAK: header settings page; only showed half logo after 1.4.2 update

1.4.2 (2015.08.05)

1.4.1 (2015.06.19)

  • revert to semantic versioning
  • modify metabox registration replace deprecated pages with post_types

1.4.0 (2015.06.17)

  • added new MetaBox feature of sort_clone

1.3.11 (2015.04.23)

1.3.10 (2015.04.09)

  • changed logos

1.3.9 (2015.03.16)

  • tested up to WP 4.2
  • bumped minimum required version up to WP 4.0

1.3.8 (2014.08.15)

  • remove function that disables auto-activation of Jetpack's related posts module -> doesn't work, stop trying, waste of time

1.3.7 (2014.07.27)

  • 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

1.3.6 (2014.04.17)

  • added filter to prevent Jetpack related posts module from auto-activating
  • move minimum WP version up to 3.7
  • modify default settings function

1.3.5 (2014.04.09)

  • updated TGM Plugin Activation class to 2.4
  • update language files

1.3.4 (2014.04.04)

  • added SO PLUS reference and discount coupon
  • update language files

1.3.3 (2014.04.03)

  • fix title bug

1.3.2 (2014.03.23)

  • add checkbox to turn Related Posts on/off per post without losing the Posts you already have set. (default off)

1.3.1 (2014.02.20)

  • bugfix, set default output title if no title has been filled in

1.3.0 (2014.02.12)

  • add settings page to enable changing the title output on the front end
  • update language files
  • update SO WP icon

1.2.0 (2014.02.09)

  • 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

1.1.1 (2014.01.24)

  • add Dutch language files (.po/.mo)
  • add .pot file

1.1.0 (2014.01.20)

1.0.1 (2014.01.07)

  • added "Please select..." placeholder text

1.0.0 (2014.01.06)

  • first release

Screenshots

Preview of the meta box in the backend and the output on the front end.

SO Related Posts Settings Page: Settings Page.

SO Related Posts meta box: Search for the related post you want to add.

SO Related Posts meta box: Add any number of related posts.

SO Related Posts output: You can style it to your liking.

About

The SO Related Posts plugin puts you in control on what really is related content.

Resources

Stars

Watchers

Forks

Packages

No packages published