in a new wordpress version, the remove_filter isn’t enough, cause the desc is stripped hardcoded from post_content …
this will do the trick:
remove_filter('nav_menu_description', 'strip_tags');
add_filter( 'wp_setup_nav_menu_item', 'cus_wp_setup_nav_menu_item' );
function cus_wp_setup_nav_menu_item($menu_item) {
$menu_item->description = apply_filters( 'nav_menu_description', $menu_item->post_content );
return $menu_item;
}
Related Posts:
- Dynamically exclude menu items from wp_nav_menu
- Add custom menu item using wp_nav_menu_items filter
- Custom search filter causes menu and query_posts problems
- Unregister Nav Menu from Child-Theme
- Allow html tags in WordPress Custom Menus Description Field
- Using filters to change href of nav menu page link
- How to apply a class to the second word in menu list item?
- WordPress nav_menu_link_attributes Not Working
- Is it possible to add a filter for the output of nav-menu items in admin?
- if role is logged in then do something
- Filter menu item to add classes/attributes?
- Edit html for menu items in default frontend menu
- Set Item Order with wp_nav_menu_{$menu->slug}_items
- When at / ( or “home”) my menu doesn’t get a current-menu-item class
- How to add parent element’s title to nav menu’s child?
- Why is ‘nav_menu_item_args’ filter’s $item argument empty?
- Add class to active element and its parent in nav menu
- display only the wp_nav_menu, which has the current-menu-item
- Third level navigation class
- How to add #navbar to all page links?
- add span to top level links of a wordpress menu called “main”
- Debugging – trying to add search box to menus
- wp_list_pages() but only show children on the branch you are on
- From a page, is it possible to find entry’s “menu_item_parent”?
- Add active class to top-level menu items when viewing single for that post type
- add_filter on menu items to add a menu item
- how to disable default menu classes
- Insert other menus as submenus of a main menu
- list category posts under its item in menu
- Prevent menu from loading in a page template [duplicate]
- Insert a div before the wp_nav_menu
- How to change menu structure?
- Secondary Navigation Menudisappeared When using wp_nav_menu_items
- remove specific classes from menu items
- wp_nav_menu action/filter help
- add_filter for where statment issue
- Add a counter beside menu item label
- Add custom link on the fly to nav menu
- menu-item class missing on wordpress menu
- Filter to hook into menu items and add a custom attribute
- if role is logged in then do something
- Possible to append class to nav menu added to widget area?
- Modifying Woocommerce menu based on tags and categories
- Why does WordPress convert absolute URLs to relative URLs for menu items?
- Menu location switcher – example code fails
- Add Featured Image and Title to wp_nav_menu items
- Show thumbnail to category items in wp_nav_menu(), how?
- Add Class to Custom Menu Widget ul
- Avoid changing menu query with suppress_filters => false
- Removing menu item doesn’t get removed on edit post
- Add Protocol to Custom Menus
- How to modify menu text in callback function of ‘walker_nav_menu_start_el’ hook
- Why is WordPress stripping anchor links from mneu item URLs?
- Add button and title on submenu WordPress
- How to Move the Author Metabox into the “Publish” metabox?
- How do I give class to the dropdown sub-menu in the wp_nav_menu?
- Add log in link to menu in Twenty Twelve
- how to automatically generate hierarchical menus from hierarchy of pages?
- Add sidebars to navigation menu?
- Where to update the Static Pages Blacklist for Multisite Install?
- How to create a category menu?
- Adding a ‘mega menu’ to my site without a plugin
- Vertical Sidebar Menu Parent and Child not displaying correctly [closed]
- Hide Menu items base on capability
- bootstrap-navwalker will not load
- Check if menu id = $specific_id – then insert specific
- How to insert link to the default post archive into a menu
- wp_nav_menu add class to child item with sub child
- How to remove menu installed in wp-admin by a theme? [closed]
- How to modify wp-includes without messing my wordpress installation?
- Use wp_logout_url() in menu creation page
- Active Menu Highlighter with Subpages?
- Insert a div class inside wordpress menu
- Retrieve Menu name for nav_menu_item
- Wrapping link and .sub-menu with wp_nav_menu
- Bootstrap button menu on wordpress
- Add extra menu to theme
- How to list only root pages?
- Search if menu item has child in wp_get_nav_menu_items hook
- How to customize navigation menu in theme which is converted from pure html theme
- WP nav menu + Bootstrap, add role=”menu” to UL
- 2 item in a same menu pointing to 1 page
- New wp menu menu styling
- How do I make it so a post only shows in its category archive but not the home page?
- For a menu custom link (without a link) a “#” is appended. Can this just be blank, i.e. NO link?
- Highlight inner post menu current item
- Menu dropdown disapears behind slider
- Generate Submenu based on Parent Page using If Statement
- how to change single post link
- Any simple way to show 10 previous pages by id to current page in links as a menu
- Pass $item->description to start_lvl
- Menu on responsive twentytwelve theme not working, strange url error
- Access CSS Classes specified in Menu options
- Query for menus in backend (BE)
- How to output the menue structured for tabbed navigation?
- Add more levels to menu
- WordPress Navigation
- Showing Custom Menus in the sidebar
- How to centre menu items on horizontal nav bar? (e.g. make margins equal) [closed]
- Display sub menus as separate lists