get rid of deprecated post_url() function