<?php//...//Append to your theme functions.phpfunctionwb_220517_add_categories_to_attachments(){register_taxonomy_for_object_type('category','attachment');}add_action('init','wb_220517_add_categories_to_attachments');
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.