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

Feature: Meaningful "Post Type" selection #74

Closed stracker-phil closed 6 months ago

stracker-phil commented 9 months ago

This PR makes two changes to the post type selection when first publishing a note to WordPress:

  1. The post type list is filtered to only include public visible post types (e.g. "attachment" and "nav_menu_item" are removed)
  2. Instead of displaying the slug, it displays the actual post type label (e.g. "post" becomes "Posts")

Note: This change only applies to the REST API. When using XML-RPC nothing will change

Sample:

2024-02-12_23-51-11