title: How to get ids of elemenent for menu in header?
body: <p>I'm editing a wordpress theme. (this: <a href="http://www.mageewp.com/demo/?theme=onetone-pro" rel="nofollow noreferrer">Onetone theme</a>)
  I'm trying to make some pages like the home seeing the theme don't provide it (I've already contacted them).
  So in each page i would have some &lt; section &gt; with a specific id and a menu with the link for each of them.</p>
  <p>I've already make a proof:</p>
  <pre><code>&lt;?php
  $sections = array('home','A','B','C','D');// home,A,B,C,D are the ids of the section added manually
  foreach ($sections as $section) {
      echo '&lt;li  class=&quot;onetone-menuitem&quot;&gt;&lt;a class=&quot;onetone-menu-link&quot; id=&quot;onetone-menu-'.$section.'&quot; href=&quot;#'.$section.'&quot; &gt;
   &lt;span&gt;'.$section.'&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;';
  }?&gt;
  </code></pre>
  <p>But as you can see,I was not able to get programmatically the ids of the sections.
  How can i do it? Thanks.</p>