Related Posts

The Related Posts shortcode for WordPress can be used to display related posts in WordPress posts. The relation can be set to category to tag for showcasing the related posts. Several other custimization settings such as featured image and columned display are also available. Check below for example implementations and shortcode documentation:

Related Posts Examples

Related Posts Shortcodes

Related Posts Shortcode
[x3m-relatedposts posts="3" image="yes" columns="3" relation="category"]
The shortcode can be used to displays a number of related posts to the post where it is included, based on same category or same tag relation. The number of columns used to display the related posts can also be set, as well as the featured image. Above example displays a 3 column with 3 related posts based on category.

Related Posts Documentation

Here are the shortcode option settings available for Related Posts:

Shortcode Settings Details
posts=”4″ This is used to set the number of related posts to be displayed.
image=”yes” This is used to set the visibility of each related post featured image. Options available are “yes” or “no”.
columns=”2″ This is used to set the number of columns used to display the related posts. Available options are “2”, “3” or “4”.
relation=”category” This is used to set the relation between the posts displayed:
– “category” – all posts are part of the same category / categories
– “tag” – all posts should have a common tag