How to Use the WordPress Desktop App with Custom Post Types


UPDATE as of June ’22: This isn’t working anymore. I reported this to Jetpack support and they identified it as a bug. Track its progress here.

I’m posting this article from the WordPress desktop app to a custom post type (called weblog) as defined in my theme. Custom post types don’t load by default in the WordPress desktop app, but with a few lines of code, you’ll be posting remotely! Please note that this does not work on the mobile apps.

First, start by installing Jetpack. Load the debugger and then the Jetpack modules – instructions here. Enable the JSON API. Next, add to your theme’s functions file:

add_filter( 'rest_api_allowed_post_types', 'allow_my_post_types');
function allow_my_post_types($allowed_post_types) {
$allowed_post_types[] = 'weblog';
return $allowed_post_types;

as documented here. Then add:

'show_in_rest' => true,

as documented here. Enjoy!