Viewing posts from: php function