Added search blog posts function