RickStrahl / MarkdownMonster

An extensible Markdown Editor, Viewer and Weblog Publisher for Windows
https://markdownmonster.west-wind.com
Other
1.57k stars 236 forks source link

Support publishing as Private on Wordpress blogs #196

Closed brandonh-msft closed 7 years ago

brandonh-msft commented 7 years ago

Draft is good, but Private would also be nice.

I've not yet figured out how to do this with Custom Fields. Perhaps instructions in this and/or a pre-defined custom field for Wordpress blogs that can be set to 'true/false' or something would suffice.

RickStrahl commented 7 years ago

Hmmm... Yeah there's a post_status field in the WordPress API. It's not mapped currently by MM.

I've added the field, but need to think bout how to hook up the UI for this since it's Wordpress specific.

Just for kicks - can you try publishing with a custom field of post_status and private as the value? It's not the same as post_value is an integral field not a custom field, but perhaps WP will pick it up from custom_fields.

brandonh-msft commented 7 years ago

That might be enough for a stopgap. i'm going to set it to private and see what it does. will comment on this issue so ppl have a way to do it in the meantime.

brandonh-msft commented 7 years ago

didn't work :sadpanda:

RickStrahl commented 7 years ago

Ah hell...

image

😅

Reworked the publish interface so it uses PostStatus to figure out draft status (which is sent as part of the publish API call) which gives more flexibility. There are a bunch more publish status options available, but we'll deal with those as people ask for them.

For now this should hopefully work in post 1.3.14 releases.