I can get the category without any problem
Term t = client.GetTerm("category", 1);
But when i want to add a category to post I get this error
Server returned a fault exception: [401] Sorry, one of the given taxonomies is not supported by the post type.
Doesn't matter even if i add new category.
var terms = new List();
terms.Add(t);
var post = new Post
{
PostType = "post",
Title = title,
Content = Description,
PublishDateTime = DateTime.Now.AddHours(-1),
Status = "publish",
Terms = terms.ToArray()
};
client.NewPost(post);
I can get the category without any problem Term t = client.GetTerm("category", 1);
But when i want to add a category to post I get this error
Doesn't matter even if i add new category.
var terms = new List();
terms.Add(t);
var post = new Post
{
PostType = "post",
Title = title,
Content = Description,
PublishDateTime = DateTime.Now.AddHours(-1),
Status = "publish",
Terms = terms.ToArray()
};
client.NewPost(post);