added function to handle post with no titles