eddiemachado/bones — pull request #205 by jonesch (2012-09-10 17:34:30+00:00)
Title: Adding Categories to the bones_related_posts()

I was needing a related posts function, but instead of by tags, I
needed posts that were related by category. So I tweaked what was
already available, and made tags the default choice, but you can pass
'cats' through bones_related_posts() as the first argument to pull back
only similiar categories. I also added an optional second argument to
bones_related_posts(), that takes the number of posts you want to pull
back. This defaults back to 5 if no value is passed.