{"id":650,"date":"2022-10-28T10:37:33","date_gmt":"2022-10-28T10:37:33","guid":{"rendered":"https:\/\/vicky.dev\/?p=650"},"modified":"2022-11-03T17:56:33","modified_gmt":"2022-11-03T17:56:33","slug":"what-is-wp_nav_menu","status":"publish","type":"post","link":"https:\/\/vicky.dev\/what-is-wp_nav_menu\/","title":{"rendered":"What is wp_nav_menu() ? And how it works?"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/vicky.dev\/what-is-wp_nav_menu\/#What_is_wp_nav_menu\" >What is wp_nav_menu() ?<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/vicky.dev\/what-is-wp_nav_menu\/#What_is_the_importance_of_wp_nav_menu_function\" >What is the importance of wp_nav_menu(); function<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/vicky.dev\/what-is-wp_nav_menu\/#How_wp_nav_menu_is_created\" >How wp_nav_menu is created ?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/vicky.dev\/what-is-wp_nav_menu\/#WordPress_navigation_menu_is_through_WordPress_dashboard\" >WordPress navigation menu is through WordPress dashboard<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/vicky.dev\/what-is-wp_nav_menu\/#Wrapping_Up\" >Wrapping Up<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"What_is_wp_nav_menu\"><\/span>What is wp_nav_menu() ?<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<p>Today we are going to write about wp_nav_menu function. The internet is full of websites, and are constantly being created. Because of this it is important to do something that can retain visitors attention for long time.<\/p>\n<p>One of the most important and convenient way to do this is, by using an attractive wp_nav_mneu(); A website can have many pages. So it is utmost important to make every page easily accessible. This can be done with the help of WP navigation menu function. Before diving into this lets first know what actually WP navigation function is.<\/p>\n<p>WP navigation menu is WordPress function. It is used to create menus in the different parts of the website\/blog. WP navigation menu can be of many types.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"What_is_the_importance_of_wp_nav_menu_function\"><\/span>What is the importance of wp_nav_menu(); function<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To understand this I will give you a simple example. Suppose you are at a very beautiful place. The place has many good things to see and enjoy. But the problem is you don\u2019t know where is what ? There isn\u2019t proper guidelines to navigate. How will you navigate to the area where you want to go ?<\/p>\n<p>Now think about this as your website. Your website\/blog is filled with great content. But the problem is the navigation to the different parts, is not good or we can simply say easy. What will the users do in this situation, leave right?<\/p>\n<p>That\u2019s why it is important to have good wp_nav_menu. It makes a good impression on visitors. As a result of this, there are chances that the may visit again. The WordPress navigation menu function gives us the power to customize menu according to our need.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"How_wp_nav_menu_is_created\"><\/span>How wp_nav_menu is created ?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The WordPress navigation menu is created inside<a href=\"https:\/\/developer.wordpress.org\/themes\/basics\/theme-functions\/\" target=\"_blank\" rel=\"noopener\"><strong> functions.php<\/strong><\/a> file. Now you might be wondering how can you access that file ? Basically there are two ways to access functions.php file. The first option to access the functions.php is via <strong>WordPress admin panel<\/strong>. Before doing so you need have permission of your hosting provider. Because you can break your site if done incorrectly. The other option is to use <strong>FTP(file transfer protocol).<\/strong><\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-654 size-large\" src=\"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/2022-10-28-4-1024x576.png\" alt=\"\" width=\"1024\" height=\"576\" srcset=\"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/2022-10-28-4-1024x576.png 1024w, https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/2022-10-28-4-600x338.png 600w, https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/2022-10-28-4-300x169.png 300w, https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/2022-10-28-4-768x432.png 768w, https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/2022-10-28-4-1536x864.png 1536w, https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/2022-10-28-4-750x422.png 750w, https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/2022-10-28-4-1140x641.png 1140w, https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/2022-10-28-4.png 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/>Once your <strong>functions.php<\/strong> file is accessible you can remove or add menu as per your needs.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"WordPress_navigation_menu_is_through_WordPress_dashboard\"><\/span>WordPress navigation menu is through WordPress dashboard<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>This is simplest way to create WordPress menu. Below I have shown the steps to create WordPress navigation menu. Just follow these steps.<br \/>\nFirst go to<strong> appearance<\/strong> \u2192 <strong>Menus<\/strong>\u2192 <strong>Create Menus<\/strong>\u2192 <strong>Save<\/strong><br \/>\nNow you have created your menu. You can add the pages you want to show in the menu. There is one importance thing to keep in mind. Where and how will your menu look depends on the theme you are using. But the process to create menu is same in all the themes.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-652 size-large\" src=\"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/2022-10-28-7-1024x506.png\" alt=\"\" width=\"1024\" height=\"506\" srcset=\"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/2022-10-28-7-1024x506.png 1024w, https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/2022-10-28-7-600x297.png 600w, https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/2022-10-28-7-300x148.png 300w, https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/2022-10-28-7-768x380.png 768w, https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/2022-10-28-7-1536x760.png 1536w, https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/2022-10-28-7-750x371.png 750w, https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/2022-10-28-7-1140x564.png 1140w, https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/2022-10-28-7.png 1899w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<figure id=\"attachment_661\" aria-describedby=\"caption-attachment-661\" style=\"width: 1024px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" class=\"size-large wp-image-661\" src=\"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/click-1024x576.png\" alt=\"\" width=\"1024\" height=\"576\" srcset=\"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/click-1024x576.png 1024w, https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/click-600x338.png 600w, https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/click-300x169.png 300w, https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/click-768x432.png 768w, https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/click-1536x864.png 1536w, https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/click-750x422.png 750w, https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/click-1140x641.png 1140w, https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/click.png 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption id=\"caption-attachment-661\" class=\"wp-caption-text\">Wp_nav_menu<\/figcaption><\/figure>\n<p>Other ways to create WordPress Menus<\/p>\n<p>WordPress menus can be of many types. Such as sticky menu, transparent menu, groovy menu, mega menu. So it\u2019s not possible to give all the functionality in one theme. There can be the cases when you like a theme overall and wanted to use that theme. But the feature you wanted is missing in that theme.<\/p>\n<p>That&#8217;s where plugins comes into play. Whatever your needs are there are high chances that a plugins related to that already exist. Just search in the plugins section. You will have more than one.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Wrapping_Up\"><\/span>Wrapping Up<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Now you know how important WordPress menus are. Whether you are talking about visual appeal of the site. Or making site easy for users to access information. WordPress wp_nav_menu plays big role. All this as a whole helps in retaining customers attention.<\/p>\n<p>Now you know everything about wp_nav_menu. It is up to you to check whether your navigation menu is suitable for you or not. If not, you know exactly what to do.<\/p>\n<p>If you enjoyed this article don\u2019t forget to check our other articles such as<a href=\"https:\/\/vicky.dev\/how-to-use-get_template_part-function-a-short-tutorial\/\" target=\"_blank\" rel=\"noopener\"> get_template_part<\/a> and <a href=\"https:\/\/vicky.dev\/wp_enqueue_style-wp_enqueue_script-in-wordpress-how-to-use-beginners-guide\/\" target=\"_blank\" rel=\"noopener\">wp_enqueue_scripts();<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is wp_nav_menu() ? Today we are going to write about wp_nav_menu function. The internet is full of websites, and are constantly being created. Because of this it is important to do something that can retain visitors attention for long time. One of the most important and convenient way to do this is, by using [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":664,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[],"class_list":["post-650","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is wp_nav_menu() ? And how it works? - Vicky.Dev<\/title>\n<meta name=\"description\" content=\"The wp_nav_menu function allows us to create menu as per our needs to increase visitors attention and make thing easily accessible.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vicky.dev\/what-is-wp_nav_menu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is wp_nav_menu() ? And how it works? - Vicky.Dev\" \/>\n<meta property=\"og:description\" content=\"The wp_nav_menu function allows us to create menu as per our needs to increase visitors attention and make thing easily accessible.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vicky.dev\/what-is-wp_nav_menu\/\" \/>\n<meta property=\"og:site_name\" content=\"Vicky.Dev\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-28T10:37:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-03T17:56:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/igor-miske-Px3iBXV-4TU-unsplash-1-scaled.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1479\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Vicky Bhandari\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vicky Bhandari\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/vicky.dev\\\/what-is-wp_nav_menu\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/what-is-wp_nav_menu\\\/\"},\"author\":{\"name\":\"Vicky Bhandari\",\"@id\":\"https:\\\/\\\/vicky.dev\\\/#\\\/schema\\\/person\\\/2fac9e330b8fb3e490c8fcaf93c7c66c\"},\"headline\":\"What is wp_nav_menu() ? And how it works?\",\"datePublished\":\"2022-10-28T10:37:33+00:00\",\"dateModified\":\"2022-11-03T17:56:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/what-is-wp_nav_menu\\\/\"},\"wordCount\":698,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/what-is-wp_nav_menu\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vicky.dev\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/igor-miske-Px3iBXV-4TU-unsplash-1-scaled.jpg\",\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vicky.dev\\\/what-is-wp_nav_menu\\\/\",\"url\":\"https:\\\/\\\/vicky.dev\\\/what-is-wp_nav_menu\\\/\",\"name\":\"What is wp_nav_menu() ? And how it works? - Vicky.Dev\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/what-is-wp_nav_menu\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/what-is-wp_nav_menu\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vicky.dev\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/igor-miske-Px3iBXV-4TU-unsplash-1-scaled.jpg\",\"datePublished\":\"2022-10-28T10:37:33+00:00\",\"dateModified\":\"2022-11-03T17:56:33+00:00\",\"description\":\"The wp_nav_menu function allows us to create menu as per our needs to increase visitors attention and make thing easily accessible.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/what-is-wp_nav_menu\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vicky.dev\\\/what-is-wp_nav_menu\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vicky.dev\\\/what-is-wp_nav_menu\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vicky.dev\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/igor-miske-Px3iBXV-4TU-unsplash-1-scaled.jpg\",\"contentUrl\":\"https:\\\/\\\/vicky.dev\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/igor-miske-Px3iBXV-4TU-unsplash-1-scaled.jpg\",\"width\":2560,\"height\":1479,\"caption\":\"Image by Igor Miske\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vicky.dev\\\/what-is-wp_nav_menu\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vicky.dev\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What is wp_nav_menu() ? And how it works?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vicky.dev\\\/#website\",\"url\":\"https:\\\/\\\/vicky.dev\\\/\",\"name\":\"Vicky.Dev\",\"description\":\"WordPress Developer for Hire\",\"publisher\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vicky.dev\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/vicky.dev\\\/#organization\",\"name\":\"Vicky.Dev\",\"url\":\"https:\\\/\\\/vicky.dev\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vicky.dev\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/vicky.dev\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/logo-png-file-01.png\",\"contentUrl\":\"https:\\\/\\\/vicky.dev\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/logo-png-file-01.png\",\"width\":1074,\"height\":581,\"caption\":\"Vicky.Dev\"},\"image\":{\"@id\":\"https:\\\/\\\/vicky.dev\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/vicky.dev\\\/#\\\/schema\\\/person\\\/2fac9e330b8fb3e490c8fcaf93c7c66c\",\"name\":\"Vicky Bhandari\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4410541319e51fcf7468342af434a97d65757010f098bc3a12c95e628f32a553?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4410541319e51fcf7468342af434a97d65757010f098bc3a12c95e628f32a553?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4410541319e51fcf7468342af434a97d65757010f098bc3a12c95e628f32a553?s=96&d=mm&r=g\",\"caption\":\"Vicky Bhandari\"},\"description\":\"Vicky Bhandari is a code is poetry type guy who loves coding. When he is not writing code he likes to learn and write about tech to share his knowledge with others.\",\"url\":\"https:\\\/\\\/vicky.dev\\\/author\\\/vicky\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is wp_nav_menu() ? And how it works? - Vicky.Dev","description":"The wp_nav_menu function allows us to create menu as per our needs to increase visitors attention and make thing easily accessible.","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:\/\/vicky.dev\/what-is-wp_nav_menu\/","og_locale":"en_US","og_type":"article","og_title":"What is wp_nav_menu() ? And how it works? - Vicky.Dev","og_description":"The wp_nav_menu function allows us to create menu as per our needs to increase visitors attention and make thing easily accessible.","og_url":"https:\/\/vicky.dev\/what-is-wp_nav_menu\/","og_site_name":"Vicky.Dev","article_published_time":"2022-10-28T10:37:33+00:00","article_modified_time":"2022-11-03T17:56:33+00:00","og_image":[{"width":2560,"height":1479,"url":"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/igor-miske-Px3iBXV-4TU-unsplash-1-scaled.jpg","type":"image\/jpeg"}],"author":"Vicky Bhandari","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Vicky Bhandari","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/vicky.dev\/what-is-wp_nav_menu\/#article","isPartOf":{"@id":"https:\/\/vicky.dev\/what-is-wp_nav_menu\/"},"author":{"name":"Vicky Bhandari","@id":"https:\/\/vicky.dev\/#\/schema\/person\/2fac9e330b8fb3e490c8fcaf93c7c66c"},"headline":"What is wp_nav_menu() ? And how it works?","datePublished":"2022-10-28T10:37:33+00:00","dateModified":"2022-11-03T17:56:33+00:00","mainEntityOfPage":{"@id":"https:\/\/vicky.dev\/what-is-wp_nav_menu\/"},"wordCount":698,"commentCount":0,"publisher":{"@id":"https:\/\/vicky.dev\/#organization"},"image":{"@id":"https:\/\/vicky.dev\/what-is-wp_nav_menu\/#primaryimage"},"thumbnailUrl":"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/igor-miske-Px3iBXV-4TU-unsplash-1-scaled.jpg","articleSection":["Tutorials"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/vicky.dev\/what-is-wp_nav_menu\/","url":"https:\/\/vicky.dev\/what-is-wp_nav_menu\/","name":"What is wp_nav_menu() ? And how it works? - Vicky.Dev","isPartOf":{"@id":"https:\/\/vicky.dev\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vicky.dev\/what-is-wp_nav_menu\/#primaryimage"},"image":{"@id":"https:\/\/vicky.dev\/what-is-wp_nav_menu\/#primaryimage"},"thumbnailUrl":"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/igor-miske-Px3iBXV-4TU-unsplash-1-scaled.jpg","datePublished":"2022-10-28T10:37:33+00:00","dateModified":"2022-11-03T17:56:33+00:00","description":"The wp_nav_menu function allows us to create menu as per our needs to increase visitors attention and make thing easily accessible.","breadcrumb":{"@id":"https:\/\/vicky.dev\/what-is-wp_nav_menu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vicky.dev\/what-is-wp_nav_menu\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vicky.dev\/what-is-wp_nav_menu\/#primaryimage","url":"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/igor-miske-Px3iBXV-4TU-unsplash-1-scaled.jpg","contentUrl":"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/igor-miske-Px3iBXV-4TU-unsplash-1-scaled.jpg","width":2560,"height":1479,"caption":"Image by Igor Miske"},{"@type":"BreadcrumbList","@id":"https:\/\/vicky.dev\/what-is-wp_nav_menu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vicky.dev\/"},{"@type":"ListItem","position":2,"name":"What is wp_nav_menu() ? And how it works?"}]},{"@type":"WebSite","@id":"https:\/\/vicky.dev\/#website","url":"https:\/\/vicky.dev\/","name":"Vicky.Dev","description":"WordPress Developer for Hire","publisher":{"@id":"https:\/\/vicky.dev\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vicky.dev\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/vicky.dev\/#organization","name":"Vicky.Dev","url":"https:\/\/vicky.dev\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vicky.dev\/#\/schema\/logo\/image\/","url":"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/09\/logo-png-file-01.png","contentUrl":"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/09\/logo-png-file-01.png","width":1074,"height":581,"caption":"Vicky.Dev"},"image":{"@id":"https:\/\/vicky.dev\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/vicky.dev\/#\/schema\/person\/2fac9e330b8fb3e490c8fcaf93c7c66c","name":"Vicky Bhandari","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4410541319e51fcf7468342af434a97d65757010f098bc3a12c95e628f32a553?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4410541319e51fcf7468342af434a97d65757010f098bc3a12c95e628f32a553?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4410541319e51fcf7468342af434a97d65757010f098bc3a12c95e628f32a553?s=96&d=mm&r=g","caption":"Vicky Bhandari"},"description":"Vicky Bhandari is a code is poetry type guy who loves coding. When he is not writing code he likes to learn and write about tech to share his knowledge with others.","url":"https:\/\/vicky.dev\/author\/vicky\/"}]}},"jetpack_featured_media_url":"https:\/\/vicky.dev\/wp-content\/uploads\/2022\/10\/igor-miske-Px3iBXV-4TU-unsplash-1-scaled.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/posts\/650","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/comments?post=650"}],"version-history":[{"count":0,"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/posts\/650\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/media\/664"}],"wp:attachment":[{"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/media?parent=650"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/categories?post=650"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vicky.dev\/wp-json\/wp\/v2\/tags?post=650"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}