added if/else statement to yield posts if theres any