Support » Plugin: F4 Media Taxonomies » New categories and tags for images

  • Resolved sagiet

    (@sagiet)


    Hi, Have been looking for a good plugin that can give me categories and tags to images files.
    This plugin looks really good, only need it to not show regular post categories and post tags for attachments, but custom categories and tags for image files. How can I do this?
    TNx Per Hopen

Viewing 1 replies (of 1 total)
  • Plugin Author FAKTOR VIER

    (@faktorvier)

    Hey sagiet

    We have a sample in our FAQ that shows you how to add custom categories or tags to the media files. Currently this is only possible in php. You can add a new taxonomy with the wordpress function register_taxonomy . The second argument has to be “attachment”. If you do this, the category/tag will be enabled for the attachments:

    add_action('init', function() {
        register_taxonomy(
            'yourtaxonomyname',
            'attachment'
        );
    });

    Hope that helps!

Viewing 1 replies (of 1 total)
  • The topic ‘New categories and tags for images’ is closed to new replies.