private static void editPost(int newPostID) { var post = _wpWrapper.GetPost(newPostID); post.Body = "Just edited the body"; post.Categories = new int[] { 14 }; post.Tags = new string[] { "new keyword" }; post.Title = "Changed the title"; _wpWrapper.EditPost(newPostID, post, true); }