replace deprecated get_page() with get_post()