Add conditions and rename get_post() to getPost().