added related posts query for custom taxonomy