title: Wordpress show sub menu items on index page
body: <p>I am using wordpress and on the page "sidebar.php" I have the following code:</p>
  
  <pre><code>&lt;?php wp_list_pages('post_type=wiki&amp;depth=1'); ?&gt;
  </code></pre>
  
  <p>It works great but what I need to do it that what I click on a Menu item on the sidebar I need the sub items to display on the main page.</p>
  
  <p>UPDATE:</p>
  
  <p>What I basically need to do is to have the first level items on the left (As it currently is), and when those links are clicked then the sub items of those items will be listed on the index.php (main page).</p>
  
  <p>I am using the wp-wiki plugin to display the pages as wiki pages but the actual but the list is the same, just showing as a different type:</p>
  
  <pre><code>post_type=wiki
  </code></pre>
  
  <p>Can anyone help please?</p>
  
  <p>Thanks</p>