add capability for bulk delete. only get custom sidebars if $post is set to avoid cache being populated too early