## Register taxonomy works to add category hiearchy but not tags

Question

I am stuck with a problem that unfortunately is not generating any errors or clues to what is going wrong. I am trying to create two taxonomy for attachment pages, one hierarchical (category) and one not (tag structure).

The category style works fine, the tag one seems to work fine, has its own menu item and page I can add new ones but on the attachment page it is just dead. Clicking the add button does nothing not even create an error.

Here is the code for hashtags that isnt working

register_taxonomy(
'hashtags',
'attachment',
array(
'labels' =>  array(
'name'              => 'Hashtags',
'singular_name'     => 'Hashtag',
'search_items'      => 'Search Hashtags',
'all_items'         => 'All Hashtags',
'edit_item'         => 'Edit Hashtags',
'update_item'       => 'Update Hashtag',
'new_item_name'     => 'New Hashtag Name',
),
'hierarchical' => false,
'sort' => true,
'rewrite' => array('slug' => 'tags', 'with_front' => false)
));


For comparison here is the one that works fine :

  register_taxonomy(
'projects',
'attachment',
array(
'labels' =>  array(
'name'              => 'Projects',
'singular_name'     => 'Project',
'search_items'      => 'Search Projects',
'all_items'         => 'All Projects',
'edit_item'         => 'Edit Projects',
'update_item'       => 'Update Project',
'new_item_name'     => 'New Project Name',
),
'hierarchical' => true,
'sort' => true,
'rewrite' => array('slug' => 'projects', 'with_front' => false)

)
);


Pretty simple and I am not seeing any problem here and without any errors so I am kind of lost.

Any idea of what else I could check or methods to debug this?

0
2 months 2022-09-27T12:58:17-05:00 0 Answers 0 views 0