View all posts functional