thingsym / custom-post-type-widgets

WordPress plugin 'Custom Post Type Widgets' adds default custom post type widgets.
https://wordpress.org/plugins/custom-post-type-widgets/
GNU General Public License v2.0
27 stars 14 forks source link

Categories do not appear #14

Closed fredarend closed 4 years ago

fredarend commented 6 years ago

Hello! I own a CPT called Gallery and a CPT Taxonomy called Gallery Category.

In the "Categories (Custom Post Type)" widget, in the "Taxonomy" field the CPT Category Gallery does not appear.

As the image below:

widget

thingsym commented 5 years ago

Hi!

What is the setting of the hierarchical option of the register_taxonomy function?

hierarchical (boolean) (optional) Is this taxonomy hierarchical (have descendants) like categories or not hierarchical like tags. Default: false

Reference: https://codex.wordpress.org/Function_Reference/register_taxonomy

By hierarchical option,

If false, use "Tag Cloud (Custom Post Type)" as tags. If true, use "Categories (Custom Post Type)" as categories.