Life runs on code

Enable Category/Tag support for WordPress Media files

Enable Category/Tag support for WordPress Media files

To enable category/tag support on WordPress Media, You have to register taxonomy for Media(attachment) by adding following code in theme function.php or in plugin file

register_taxonomy( 'media-category', 'attachment', $args );

Note : This will work with WordPress 3.5 or higher.



Leave a Reply

Your email address will not be published. Required fields are marked *