Get the original menu item name string instead of the label
You can try to get that information by using the get_term_by() function with the relevant parameters of the menu item (namely object and object_id) : foreach( (array) $menu_items as $key => $menu_item ) { // Match the menu items to your custom taxonomy: if( ‘solutions_category’ === $menu_item->object ) { // Fetch the corresponding term object: … Read more