This in your post content will be replaced with a list of related posts.
Shortcodes can also be used with additional attributes as the following example shows:
[related_posts_by_tax format="thumbnails" image_size="medium"]
This will be replaced by medium sized related thumbnails.
Note: To add the related posts automatically after the post content it’s recommended you use this method instead of the shortcode.
All default attribute values can be filtered in your (child) theme’s functions.php file. This allows you to set your own defaults and more. See this Filter.
- (int) Display related posts for a specific post ID. There is no default.