title: Wordpress custom post type: parent child relationship
body: <p>How can I maintain parent child relationship in custom post type without using any plugins in wordpress ?</p>
  
  <p>For eg:
  when you visit this site </p>
  
  <blockquote>
    <p><a href="http://www.volunteeringnepal.com/" rel="nofollow">http://www.volunteeringnepal.com/</a></p>
  </blockquote>
  
  <p>you can find volunteer impact menu. Under this menu I've made <code>volunteers_impact</code> taxonomy to categorized the volunteer impact by using Plugins called gdcpt custom post type. But I want to do this without using any plugins, and most important thing is that I want to maintain parent child relationship.</p>
  
  <p>In this site, when you click </p>
  
  <blockquote>
    <p>www.volunteeringnepal.com/volunteers_impact/volunteering-impact-2013</p>
  </blockquote>
  
  <p>you will find volunteer impact of 2013 only. The taxonomy name is <code>voluteers_impact</code>, but I want to keep taxonomy name <code>volunteer-impact</code> which is good for SEO purposes. </p>
  
  <p>While giving custom post type and taxonomy name, this plugins suggest to use only underscore to join two words.</p>
  
  <p>When you click single page suppose </p>
  
  <blockquote>
    <p><a href="http://www.volunteeringnepal.com/volunteer-impact/women-empowerment-2013/" rel="nofollow">http://www.volunteeringnepal.com/volunteer-impact/women-empowerment-2013/</a></p>
  </blockquote>
  
  <p>you will see the difference of post name (volunteer-impact) and taxonomy name (volunteers_impact). How can I categorized it so that url structure would be same. For eg:</p>
  
  <blockquote>
    <p>volunteeringnepal.com/volunteer-impact/volunteering-impact-2013 </p>
  </blockquote>
  
  <p>for taxonomy and </p>
  
  <p>volunteeringnepal.com/volunteer-impact/women-empowerment-2013</p>