Having issues with logic when posts are more than one line