Viewing 1 replies (of 1 total)
  • [crp] is the only shortcode available in this plugin. It has three optional attributes limit, heading and cache.

    How to use Shortcode
    You can insert the related posts anywhere in your post using the [crp] shortcode. The plugin takes three optional attributes limit, heading and cache as follows:

    [crp limit="5" heading="1" cache="1"]
    limit : Maximum number of posts to return. The actual number displayed may be lower depending on the matching algorithm and the category / post exclusion settings.

    heading : By default, the heading you specify in Title of related posts: under Output options will be displayed. You can override this by specifying your own heading e.g.

    <h3>Similar posts</h3>
    [crp limit="2" heading="0"]

    cache : Cache the output or not? By default the output will be cached for the post you add the shortcode in. You can override this by specifying cache=0

    In addition to the above, the shortcode takes every option that the plugin supports. See crp_default_options() function to see the options that can be set.

    Source

Viewing 1 replies (of 1 total)
  • The topic ‘I want shortcodes’ is closed to new replies.