Re: Using WordPressSharp To Publish A Post - http://brudtkuhl.com/using-w...
Jan 29, 2015
from
"You would set the ParentId property on the child page
var parentPage = new Post {
PostType = "page",
Title = "The Parent Page",
Content = "content",
PublishDate = DateTime.Now,
Status = "publish"
};
var parentId = client.NewPost(parentPage);
var childPage = new Post {
PostType = "page",
Title = "The Child Page",
Content = "content",
PublishDate = DateTime.Now,
Status = "publish",
ParentId = parentId;
};
var childId = client.NewPost(childPage);"
- andy brudtkuhl