Forums

Return post list using related_posts()!! (2 posts)

  1. divyang.jp
    Member
    Posted 9 months ago #

    Hi Mitcho,
    My theme has related posts functionality based on tags. But I want to use YARPP results as they are more relevant. Is there anyway I can just return result set of YARPP to my theme file variable.

    e.g.
    In my theme file related-posts.php,
    $my_variable = related_posts();

    Will this push results of yarpp into $my_variable?
    If not, how can I achieve this?

    -Divyang

  2. No. I suggest you use a custom YARPP template and have that code store the results into a variable. Here's more info:

    http://mitcho.com/blog/projects/yarpp-3-templates/

Reply

You must log in to post.

About this Topic