WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[resolved] [Plugin: Yet Another Related Posts Plugin] related_posts outside of the loop (3 posts)

  1. victar
    Member
    Posted 1 year ago #

    How can use related_posts outside of the loop using the post ID?

    http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/

  2. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    Just call related_posts(array(), $post_ID) or equivalently yarpp_related(array(), $post_ID). :)

    The array() corresponds to various options you can call on-the-fly. More info on the options are in the readme.

  3. victar
    Member
    Posted 1 year ago #

    Maybe the problem is I'm using too many args. How would I incorperate it into this?

    yarpp_related(array('exclude' => array('category' => 10459), 'recent' => '1 month')

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic