ControlledChaos
8/8/2016 - 3:10 PM

Add tags to WordPress attachments.

Add tags to WordPress attachments.

<?php

function ccd_attachment_tags() {
    register_taxonomy_for_object_type( 'post_tag', 'attachment' );
}
add_action( 'init' , 'ccd_attachment_tags' );

?>

Attachment Tags

WordPress Snippet