• Resolved dreadedhamish

    (@dreadedhamish)


    I’ve removed all categories from media, and added the code the my functions file. Cleared all caches. Still it remains “Category” and the same page as categories for posts.

    When I try to get to the new taxonomies page manually, by changing:
    /wp-admin/edit-tags.php?taxonomy=category&post_type=attachment
    to
    /wp-admin/edit-tags.php?taxonomy=category_media&post_type=attachment
    I get an error – Invalid Taxonomy

    WordPress Version: 4.9.8
    PHP Version: 7.1.20-1+0~20180910100430.3+jessie~1.gbp17c613
    Using PODS as well if that could be conflicting, but I haven’t applied any custom taxonomies to media.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author jeffrey-wp

    (@jeffrey-wp)

    Can you confirm you have succesfully added this code to your functions.php file in your (child) theme:
    add_filter( 'wpmediacategory_taxonomy', function(){ return 'category_media'; } );

    There shouldn’t be any problems with using the PODS plugin.

    Thread Starter dreadedhamish

    (@dreadedhamish)

    Confirmed. It still remains the shared Category taxonomy.

    I am having the same issue. Anyone got a fix?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Function to use seperate taxonomy not working’ is closed to new replies.