add post_id context to get_attached_media from the current post context