title: Unable to get the menu items name and slugs in WordPress development
body: <p>I'm new to WordPress development. I have made a design of the nav menu. I want to create the menu from admin panel and want to get those menus at my front page of the website with my custom CSS. I'm able to create the menu and get those in my front page but can't understand how to get those menu items with my custom CSS and structure.</p>
  
  <p><strong>HTML STRUCTURE</strong></p>
  
  <pre><code>&lt;div class="col-12 log-menu"&gt;
           &lt;ul&gt;
             &lt;li&gt;&lt;a href=""&gt;&lt;span title="Home"&gt;Home&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;  
             &lt;li&gt;&lt;a href="about"&gt;&lt;span title="About"&gt;About&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;  
             &lt;li&gt;&lt;a href="#"&gt;&lt;span title="Services"&gt;Services&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;  
             &lt;li&gt;&lt;a href="#"&gt;&lt;span title="Careers"&gt;Careers&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;  
             &lt;li&gt;&lt;a href="#"&gt;&lt;span title="Contact"&gt;Contact&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;  
           &lt;/ul&gt; 
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>STYLE</strong></p>
  
  <pre><code>.log-menu ul{
      list-style: none;
      margin: 0px;
      padding: 0px;
      float: right
  }
  .log-menu ul li{
      float: left;
      margin-right: 10px;
      margin-top: 35px;
      transform-style: preserve-3d;
  }
  .log-menu ul li a{
      color: #222;
      font-weight: 500;
      font-size: 20px;
      display: block;
      text-decoration: none;
      position: relative;
  }
  
  
  .log-menu ul li a span{
      display: block;
      padding: 10px 35px;
  }
  
  .log-menu ul li a span::before{
      content: attr(title);
      position: absolute;
      top: 0px;
      left: 0px;
      background: #f30000;
      color: #fff;
      padding: 10px 35px;
      transform-style: preserve-3d;
      transition: .3s;
      transform: rotateX(90deg) translateY(50px);
      transform-origin: bottom;
  }
  .log-menu ul li a span:hover::before{
      transform: rotateX(0deg) translateY(0px);
  }
  
  .log-menu ul li a span::after{
      content: attr(title);
      position: absolute;
      top: 0px;
      left: 0px;
      background: #fff;
      color: #262626;
      padding: 10px 35px;
      transform-style: preserve-3d;
      transition: .3s;
      transform: rotateX(00deg) translateY(00px);
      transform-origin: top;
  }
  .log-menu ul li a span:hover::after{
      transform: rotateX(90deg) translateY(-10px);
  }
  </code></pre>
  
  <p><strong>function.php</strong></p>
  
  <pre><code>&lt;?php 
  
  /* CUSTOMIZED THEME */
  
  function customize_register_nav_menu(){
      register_nav_menu('primary','Header Navigation Menu');
  }
  
  add_action('after_setup_theme', 'customize_register_nav_menu');
  </code></pre>
  
  <p>So my question is how can I get the menu items name as <code>&lt;li&gt;&lt;a href=""&gt;&lt;span title="Home"&gt;Home&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;</code> <code>title attr value</code> and <code>anchor tags value</code>. </p>