{"id":4192,"date":"2022-08-21T22:13:01","date_gmt":"2022-08-21T16:43:01","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-menu-items-description-custom-walker-for-wp_nav_menu\/"},"modified":"2022-08-21T22:13:01","modified_gmt":"2022-08-21T16:43:01","slug":"solved-menu-items-description-custom-walker-for-wp_nav_menu","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-menu-items-description-custom-walker-for-wp_nav_menu\/","title":{"rendered":"[Solved] Menu items description? Custom Walker for wp_nav_menu()"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-14039\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"14039\" data-parentid=\"14037\" data-score=\"123\" data-position-on-page=\"1\" data-highest-scored=\"1\" data-question-has-accepted-highest-score=\"1\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<div class=\"post-layout\">\n<div class=\"votecell post-layout--left\"><\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"s-prose js-post-body\" itemprop=\"text\">\n<p>You need a custom walker for the nav menu.<\/p>\n<p>Basically, you add a parameter <code>'walker'<\/code> to the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_nav_menu\/\"><code>wp_nav_menu()<\/code><\/a> options and call an instance of an enhanced class:<\/p>\n<pre><code>wp_nav_menu(\n    array (\n        'menu'            =&gt; 'main-menu',\n        'container'       =&gt; FALSE,\n        'container_id'    =&gt; FALSE,\n        'menu_class'      =&gt; '',\n        'menu_id'         =&gt; FALSE,\n        'depth'           =&gt; 1,\n        'walker'          =&gt; new Description_Walker\n    )\n);\n<\/code><\/pre>\n<p>The class <code>Description_Walker<\/code> extends <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/github.com\/WordPress\/WordPress\/blob\/84f9592f88a19dd3fb4d1b8780679c99ea678688\/wp-includes\/class-walker-nav-menu.php\"><code>Walker_Nav_Menu<\/code><\/a> and changes the function <code>start_el( &amp;$output, $item, $depth, $args )<\/code> to look for <code>$item-&gt;description<\/code>.<\/p>\n<p>A basic example:<\/p>\n<pre><code>\/**\n * Create HTML list of nav menu items.\n * Replacement for the native Walker, using the description.\n *\n * @see    https:\/\/wordpress.stackexchange.com\/q\/14037\/\n * @author fuxia\n *\/\nclass Description_Walker extends Walker_Nav_Menu\n{\n    \/**\n     * Start the element output.\n     *\n     * @param  string $output Passed by reference. Used to append additional content.\n     * @param  object $item   Menu item data object.\n     * @param  int $depth     Depth of menu item. May be used for padding.\n     * @param  array|object $args    Additional strings. Actually always an \n                                     instance of stdClass. But this is WordPress.\n     * @return void\n     *\/\n    function start_el( &amp;$output, $item, $depth = 0, $args = array(), $id = 0 )\n    {\n        $classes     = empty ( $item-&gt;classes ) ? array () : (array) $item-&gt;classes;\n\n        $class_names = join(\n            ' '\n        ,   apply_filters(\n                'nav_menu_css_class'\n            ,   array_filter( $classes ), $item\n            )\n        );\n\n        ! empty ( $class_names )\n            and $class_names=\" class=\"\". esc_attr( $class_names ) . '\"';\n\n        $output .= \"&lt;li id='menu-item-$item-&gt;ID' $class_names&gt;\";\n\n        $attributes=\"\";\n\n        ! empty( $item-&gt;attr_title )\n            and $attributes .= ' title=\"'  . esc_attr( $item-&gt;attr_title ) .'\"';\n        ! empty( $item-&gt;target )\n            and $attributes .= ' target=\"' . esc_attr( $item-&gt;target     ) .'\"';\n        ! empty( $item-&gt;xfn )\n            and $attributes .= ' rel=\"'    . esc_attr( $item-&gt;xfn        ) .'\"';\n        ! empty( $item-&gt;url )\n            and $attributes .= ' href=\"'   . esc_attr( $item-&gt;url        ) .'\"';\n\n        \/\/ insert description for top level elements only\n        \/\/ you may change this\n        $description = ( ! empty ( $item-&gt;description ) and 0 == $depth )\n            ? '&lt;small class=\"nav_desc\"&gt;' . esc_attr( $item-&gt;description ) . '&lt;\/small&gt;' : '';\n\n        $title = apply_filters( 'the_title', $item-&gt;title, $item-&gt;ID );\n\n        $item_output = $args-&gt;before\n            . \"&lt;a $attributes&gt;\"\n            . $args-&gt;link_before\n            . $title\n            . '&lt;\/a&gt; '\n            . $args-&gt;link_after\n            . $description\n            . $args-&gt;after;\n\n        \/\/ Since $output is called by reference we don't need to return anything.\n        $output .= apply_filters(\n            'walker_nav_menu_start_el'\n        ,   $item_output\n        ,   $item\n        ,   $depth\n        ,   $args\n        );\n    }\n}\n<\/code><\/pre>\n<p>Or, alternatively as @nevvermind commented, you could <em>inherit<\/em> all the functionalities of the parent&#8217;s <code>start_el<\/code> function and just <em>append<\/em> the description to <code>$output<\/code>:<\/p>\n<pre><code>function start_el( &amp;$output, $item, $depth = 0, $args = array(), $id = 0 ) \n{\n    parent::start_el( $output, $item, $depth, $args );\n    $output .= sprintf( \n        '&lt;i&gt;%s&lt;\/i&gt;', \n        esc_html( $item-&gt;description ) \n    );\n}\n<\/code><\/pre>\n<p>Sample output:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/Solved-Menu-items-description-Custom-Walker-for-wp_nav_menu.png\" alt=\"enter image description here\"><\/p>\n<p>Now enable the description field in <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/github.com\/WordPress\/WordPress\/blob\/master\/wp-admin\/nav-menus.php\"><code>wp-admin\/nav-menus.php<\/code><\/a> to get the ability to edit this field. If you don\u2019t WP just trashes your complete post content into it.  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/1661100181_42_Solved-Menu-items-description-Custom-Walker-for-wp_nav_menu.png\" alt=\"enter image description here\"><\/p>\n<p>Further reading: <\/p>\n<ul>\n<li><a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/www.google.com\/cse?cx=008094839757605916882:f6pwe-gmjka&amp;ie=UTF-8&amp;q=trac%20description%20nav%20menu&amp;sa=Search&amp;hl=de&amp;siteurl=www.google.com\/cse\/home?cx=008094839757605916882:f6pwe-gmjka&amp;hl=de\">Associated bugs<\/a><\/li>\n<li>Similar example with different markup and formatting<\/li>\n<li>Enable description box in menu management screen programmatically<\/li>\n<li>Collect the item description for later usage<\/li>\n<\/ul>\n<p>And that\u2019s it. <\/p>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\">5<\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved Menu items description? Custom Walker for wp_nav_menu() <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] You need a custom walker for the nav menu. Basically, you add a parameter &#8216;walker&#8217; to the wp_nav_menu() options and call an instance of an enhanced class: wp_nav_menu( array ( &#8216;menu&#8217; =&gt; &#8216;main-menu&#8217;, &#8216;container&#8217; =&gt; FALSE, &#8216;container_id&#8217; =&gt; FALSE, &#8216;menu_class&#8217; =&gt; &#8221;, &#8216;menu_id&#8217; =&gt; FALSE, &#8216;depth&#8217; =&gt; 1, &#8216;walker&#8217; =&gt; new Description_Walker ) ); &#8230; <a title=\"[Solved] Menu items description? Custom Walker for wp_nav_menu()\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-menu-items-description-custom-walker-for-wp_nav_menu\/\" aria-label=\"More on [Solved] Menu items description? Custom Walker for wp_nav_menu()\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[627],"tags":[660,645,661],"class_list":["post-4192","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-menus","tag-theme-development","tag-walker"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>[Solved] Menu items description? Custom Walker for wp_nav_menu() - JassWeb<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jassweb.com\/solved\/solved-menu-items-description-custom-walker-for-wp_nav_menu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] Menu items description? Custom Walker for wp_nav_menu() - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] You need a custom walker for the nav menu. Basically, you add a parameter &#039;walker&#039; to the wp_nav_menu() options and call an instance of an enhanced class: wp_nav_menu( array ( &#039;menu&#039; =&gt; &#039;main-menu&#039;, &#039;container&#039; =&gt; FALSE, &#039;container_id&#039; =&gt; FALSE, &#039;menu_class&#039; =&gt; &#039;&#039;, &#039;menu_id&#039; =&gt; FALSE, &#039;depth&#039; =&gt; 1, &#039;walker&#039; =&gt; new Description_Walker ) ); ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-menu-items-description-custom-walker-for-wp_nav_menu\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-21T16:43:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/Solved-Menu-items-description-Custom-Walker-for-wp_nav_menu.png\" \/>\n<meta name=\"author\" content=\"Kirat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-menu-items-description-custom-walker-for-wp_nav_menu\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-menu-items-description-custom-walker-for-wp_nav_menu\\\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/person\\\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] Menu items description? Custom Walker for wp_nav_menu()\",\"datePublished\":\"2022-08-21T16:43:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-menu-items-description-custom-walker-for-wp_nav_menu\\\/\"},\"wordCount\":141,\"publisher\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-menu-items-description-custom-walker-for-wp_nav_menu\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/Solved-Menu-items-description-Custom-Walker-for-wp_nav_menu.png\",\"keywords\":[\"menus\",\"theme-development\",\"walker\"],\"articleSection\":[\"WordPress\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-menu-items-description-custom-walker-for-wp_nav_menu\\\/\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-menu-items-description-custom-walker-for-wp_nav_menu\\\/\",\"name\":\"[Solved] Menu items description? Custom Walker for wp_nav_menu() - JassWeb\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-menu-items-description-custom-walker-for-wp_nav_menu\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-menu-items-description-custom-walker-for-wp_nav_menu\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/Solved-Menu-items-description-Custom-Walker-for-wp_nav_menu.png\",\"datePublished\":\"2022-08-21T16:43:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-menu-items-description-custom-walker-for-wp_nav_menu\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-menu-items-description-custom-walker-for-wp_nav_menu\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-menu-items-description-custom-walker-for-wp_nav_menu\\\/#primaryimage\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/Solved-Menu-items-description-Custom-Walker-for-wp_nav_menu.png\",\"contentUrl\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/Solved-Menu-items-description-Custom-Walker-for-wp_nav_menu.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/solved-menu-items-description-custom-walker-for-wp_nav_menu\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] Menu items description? Custom Walker for wp_nav_menu()\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#website\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/\",\"name\":\"JassWeb\",\"description\":\"Build High-quality Websites\",\"publisher\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#organization\",\"name\":\"Jass Web\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/jassweb.com\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/jass-website-logo-1.png\",\"contentUrl\":\"https:\\\/\\\/jassweb.com\\\/wp-content\\\/uploads\\\/2021\\\/02\\\/jass-website-logo-1.png\",\"width\":693,\"height\":132,\"caption\":\"Jass Web\"},\"image\":{\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/#\\\/schema\\\/person\\\/65c9c7b7958150c0dc8371fa35dd7c31\",\"name\":\"Kirat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/litespeed\\\/avatar\\\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777613206\",\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/litespeed\\\/avatar\\\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777613206\",\"contentUrl\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/wp-content\\\/litespeed\\\/avatar\\\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777613206\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\\\/\\\/jassweb.com\"],\"url\":\"https:\\\/\\\/jassweb.com\\\/solved\\\/author\\\/jaspritsinghghumangmail-com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] Menu items description? Custom Walker for wp_nav_menu() - JassWeb","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jassweb.com\/solved\/solved-menu-items-description-custom-walker-for-wp_nav_menu\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] Menu items description? Custom Walker for wp_nav_menu() - JassWeb","og_description":"[ad_1] You need a custom walker for the nav menu. Basically, you add a parameter 'walker' to the wp_nav_menu() options and call an instance of an enhanced class: wp_nav_menu( array ( 'menu' =&gt; 'main-menu', 'container' =&gt; FALSE, 'container_id' =&gt; FALSE, 'menu_class' =&gt; '', 'menu_id' =&gt; FALSE, 'depth' =&gt; 1, 'walker' =&gt; new Description_Walker ) ); ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-menu-items-description-custom-walker-for-wp_nav_menu\/","og_site_name":"JassWeb","article_published_time":"2022-08-21T16:43:01+00:00","og_image":[{"url":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/Solved-Menu-items-description-Custom-Walker-for-wp_nav_menu.png","type":"","width":"","height":""}],"author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-menu-items-description-custom-walker-for-wp_nav_menu\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-menu-items-description-custom-walker-for-wp_nav_menu\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] Menu items description? Custom Walker for wp_nav_menu()","datePublished":"2022-08-21T16:43:01+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-menu-items-description-custom-walker-for-wp_nav_menu\/"},"wordCount":141,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"image":{"@id":"https:\/\/jassweb.com\/solved\/solved-menu-items-description-custom-walker-for-wp_nav_menu\/#primaryimage"},"thumbnailUrl":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/Solved-Menu-items-description-Custom-Walker-for-wp_nav_menu.png","keywords":["menus","theme-development","walker"],"articleSection":["WordPress"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-menu-items-description-custom-walker-for-wp_nav_menu\/","url":"https:\/\/jassweb.com\/solved\/solved-menu-items-description-custom-walker-for-wp_nav_menu\/","name":"[Solved] Menu items description? Custom Walker for wp_nav_menu() - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-menu-items-description-custom-walker-for-wp_nav_menu\/#primaryimage"},"image":{"@id":"https:\/\/jassweb.com\/solved\/solved-menu-items-description-custom-walker-for-wp_nav_menu\/#primaryimage"},"thumbnailUrl":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/Solved-Menu-items-description-Custom-Walker-for-wp_nav_menu.png","datePublished":"2022-08-21T16:43:01+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-menu-items-description-custom-walker-for-wp_nav_menu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-menu-items-description-custom-walker-for-wp_nav_menu\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/solved-menu-items-description-custom-walker-for-wp_nav_menu\/#primaryimage","url":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/Solved-Menu-items-description-Custom-Walker-for-wp_nav_menu.png","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/08\/Solved-Menu-items-description-Custom-Walker-for-wp_nav_menu.png"},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-menu-items-description-custom-walker-for-wp_nav_menu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] Menu items description? Custom Walker for wp_nav_menu()"}]},{"@type":"WebSite","@id":"https:\/\/jassweb.com\/solved\/#website","url":"https:\/\/jassweb.com\/solved\/","name":"JassWeb","description":"Build High-quality Websites","publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jassweb.com\/solved\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jassweb.com\/solved\/#organization","name":"Jass Web","url":"https:\/\/jassweb.com\/solved\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/","url":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","contentUrl":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","width":693,"height":132,"caption":"Jass Web"},"image":{"@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31","name":"Kirat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777613206","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777613206","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1777613206","caption":"Kirat"},"sameAs":["http:\/\/jassweb.com"],"url":"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/4192","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/comments?post=4192"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/4192\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=4192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=4192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=4192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}