Fixed javascript issue only showing one post when filtering by category.