Related posts are a great way of influencing visitors to read more of your content, by bouncing them about your many archives. You can implement this into your theme, but this shortcode makes little work of it and allows it to be controlled and manipulated right from within the shortcode’s attributes.
Be careful though, this is a slightly longer function than our previous entries, and all thanks to WP Mods.
Usage
You will be able to insert your related post just by using the first shortcode example below. Alternatively, you can limit the number of rendered post links by setting a limit attribute, like what has been done in the second example
[gist id=4081833]
Leave a Reply