replace_post_media

smarter function