• Resolved Sueneé

    (@suenee)


    I used ToolSet to prepare custom taxonomy and then I want to change default taxonomy “category” to “media-category”, but it does not work! {I made var_dump on apply filter in “wpmediacategory_init” method.) I used your code and added it to functions.php in theme. Please explain me more, where is a best place to put this code?

    
    add_filter( ‘wpmediacategory_taxonomy’, function(){ return ‘category_media’; } ); //requires PHP 5.3 or newer
    
Viewing 1 replies (of 1 total)
  • Plugin Author jeffrey-wp

    (@jeffrey-wp)

    The file functions.php is a good place to add the code, so you got that right 😉
    You say you want to add “media-category” but you add the taxonomy “category_media” in your code. Also it’s not necessary to use ToolSet to create the custom taxonomy, my plugin will do this for you automatic.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom taxonomy’ is closed to new replies.