Title: Return post list using related_posts()!!
Last modified: August 20, 2016

---

# Return post list using related_posts()!!

 *  [divyang.jp](https://wordpress.org/support/users/divyangjp/)
 * (@divyangjp)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/return-post-list-using-related_posts/)
 * 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

Viewing 1 replies (of 1 total)

 *  [mitcho (Michael Yoshitaka Erlewine)](https://wordpress.org/support/users/mitchoyoshitaka/)
 * (@mitchoyoshitaka)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/return-post-list-using-related_posts/#post-2276770)
 * 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/](http://mitcho.com/blog/projects/yarpp-3-templates/)

Viewing 1 replies (of 1 total)

The topic ‘Return post list using related_posts()!!’ is closed to new replies.

## Tags

 * [YARPP](https://wordpress.org/support/topic-tag/yarpp/)

 * 1 reply
 * 2 participants
 * Last reply from: [mitcho (Michael Yoshitaka Erlewine)](https://wordpress.org/support/users/mitchoyoshitaka/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/return-post-list-using-related_posts/#post-2276770)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
