Contextual Related Posts includes a shortcode the related posts list. If you’re not familiar with shortcodes, please read this article in the WordPress Codex.

[crp]

This shortcode lets you insert the contextually related posts anywhere in your post content. It takes three main optional attributes:

  • limit: Maximum number of posts to return. The actual number displayed may be lower depending on the category / post exclusion settings
  • heading: Set to 0 to disable the heading specified in Title of popular posts: under Output options

In addition to these attributes, the shortcode can take all the options as attributes and these can override the plugin settings. The following ones will affect the output of the related posts list:

  • title_length: A numerical value to limit the length of the titles in the display
  • offset: A numerical value to indicate the number of posts to displace or pass over
  • post_types: Comma separated list of post types from which to select the top posts
  • thumb_width: Thumbnail width. Accepts a number
  • thumb_height: Thumbnail height. Accepts a number
  • show_author: Display the author of the post. 1 or 0
  • show_date: Display the published date of the post. 1 or 0
  • show_excerpt: Display the excerpt. 1 or 0
  • disp_list_count: Display the number of visits of the post
  • post_thumb_op: Location of the post thumbnail. Values include inline, after, text_only and thumbs_only
  • exclude_post_ids: Comma separated list of IDs to exclude
  • link_nofollow: Add nofollow attribute to links. 1 or 0
  • link_new_window: Add _blank attribute to links. 1 or 0
  • daily_range: A numerical value that sets the oldest date of the related posts
  • ordering: Options are relevance, random and date
  • same_post_type: Limit to same post type. 1 or 0
  • same_author: Limit to same post author. 1 or 0