Add categories to media library
-
This hook adds categories to attachments but only as a text field as opposed to the normal checkboxes – how would I go about getting checkboxes in a metabox as normal
//* Add categories to attachments / media library add_action( 'init' , 'wt_add_categories_to_attachments' ); function wt_add_categories_to_attachments() { register_taxonomy_for_object_type( 'category', 'attachment' ); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Add categories to media library’ is closed to new replies.