Wordpress custom menu for different categories -


how different menus different categories? when add new category through admin want custom menu generate dynamically.

depending on mean simple , yes, possible , imho , simple .

you can not however, afaik , in core wp ui.

what need ,is create menus , , use conditionals, in specific is_category(); in order display them :

if( is_category( array( 9, 'food', 'bones' ) ){ // can use either id or slug...         wp_nav_menu( 'a')     } else if( is_category( array( 99, 'fur', 'flees' ) ) {         wp_nav_menu('b')     } else if( is_category( array( 'whatever' ) ) {         wp_nav_menu('c')     } else {         wp_nav_menu('x')     }  

please @ wp_nav_menu()


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -