devbean / obsidian-wordpress

An obsidian plugin for publishing docs to WordPress.
https://devbean.github.io/obsidian-wordpress
Apache License 2.0
158 stars 22 forks source link

Publishing to Custom Post types #84

Open archienike opened 4 months ago

archienike commented 4 months ago

I have a custom post types for book summaries. It shoes up in the pop-up window during the publish workflow within Obsidian. However the entry is made in the general "posts" post type and not the custom post type for book summaries.

dickinsonk9 commented 3 months ago

Connecting and posting are successful to the Posts for me as well, but I'd like to use this for custom post types, not the original one. That has a different purpose for me.

I have this issue as well; I've enabled the 'show_in_rest' => true and 'rest_controller_class' => 'WP_REST_Terms_Controller' in the CPT itself, plus all of it's taxonomies.

I selected the CPT for when I am going to publish an item to WP.

My CPT is in a custom plugin, so if the CPT needs to be moved to the theme in order for this plugin to work, please let me know. I have full control over this plugin (as it's one I've created personally).