Title: Multiple Custom Taxonomies ?
Last modified: August 8, 2017

---

# Multiple Custom Taxonomies ?

 *  Resolved [Allen Chu](https://wordpress.org/support/users/allensph/)
 * (@allensph)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/custom-taxonomy-terms-2/)
 * Greetings,
 * I found the [developer docs](https://matlipe.com/advanced-sidebar-menu/developer-docs/)
   about the filter: **advanced_sidebar_menu_taxonomy**
 * The Code Example changed taxonomy to another one.
    But how to make it support
   on multiple taxonomies ? Thank you.
    -  This topic was modified 8 years, 9 months ago by [Allen Chu](https://wordpress.org/support/users/allensph/).

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

 *  Thread Starter [Allen Chu](https://wordpress.org/support/users/allensph/)
 * (@allensph)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/custom-taxonomy-terms-2/#post-9393490)
 * And I think it’s better to detect current taxonomy type and generate $taxonomy
   value dynamically, instead of manually change it. But these behavior may not 
   fit the plugin structure and not easy for me to achieve. Need some help here.
   Thanks.
 *  Thread Starter [Allen Chu](https://wordpress.org/support/users/allensph/)
 * (@allensph)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/custom-taxonomy-terms-2/#post-9394531)
 * I’ve tried and make something available for my scenario:
    Create a parent level
   term above others in My Custom Taxonomy. Use taxonomy-term instead of custom-
   post-type-archive in Menu, and works fine (even with several different taxonomies).
 *     ```
       function custom_taxonomy( $taxonomy, $widget_args, $widget_values, $menu_class){
           global $post;
           $taxonomy_names = get_object_taxonomies( $post );
           $taxonomy = $taxonomy_names[0];
           return $taxonomy;
       }
       add_action('advanced_sidebar_menu_taxonomy','custom_taxonomy', 10, 4);
       ```
   

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

The topic ‘Multiple Custom Taxonomies ?’ is closed to new replies.

 * ![](https://ps.w.org/advanced-sidebar-menu/assets/icon-256x256.png?rev=1810540)
 * [Advanced Sidebar Menu](https://wordpress.org/plugins/advanced-sidebar-menu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-sidebar-menu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-sidebar-menu/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-sidebar-menu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-sidebar-menu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-sidebar-menu/reviews/)

## Tags

 * [custom taxonomy](https://wordpress.org/support/topic-tag/custom-taxonomy/)

 * 2 replies
 * 1 participant
 * Last reply from: [Allen Chu](https://wordpress.org/support/users/allensph/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/custom-taxonomy-terms-2/#post-9394531)
 * Status: resolved