1 year ago

#72877

test-img

LeoN

How to publish post with private status?

I am using JoeBlogs https://github.com/alexjamesbrown/JoeBlogs to publish my content from ASP.NET VB to wordpress. I am having some problems with posting my Post in Private Status instead of Public Status

Here is my code for creating a new Post Status:

Dim postStatus = New PostStatus()

And this (i tried both of it but none of it work for me)

postStatus = JoeBlogs.PostStatus.Private
postStatus = postStatus.Private

The result is just publish my Post Content with Public Status without any error, i tried to debugged it and cant find any problem.

Any help would be greatly appreciated. even in C# would help me alot! ps. its my first time posting on stackoverflow sorry for any mistakes

Edit #2 This is my other field which is working fine.

 Dim post = New Post() 


post.DateCreated = DateTime.Now
post.Title = txtTitle.Text
post.Body = txtContent.Text

wp.NewPost(post, True)

wp.NewPost does not support postStatus.

wordpress

vb.net

xml-rpc

joeblogs

0 Answers

Your Answer

Accepted video resources