fixing post IDs in history shortcode