title: How to update the slug and change the Wordpress permalink?
body: <p>I have a problem with permalinks. In my site, I register the custom post type name '<em>product</em>' and taxonomy '<em>type</em>' . In taxonomy '<em>type</em>', I added terms like :</p>
  
  <ul>
  <li>food
  <ul>
  <li>food A</li>
  <li>food B</li>
  </ul></li>
  <li>drink
  <ul>
  <li>drink A</li>
  <li>drink B </li>
  </ul></li>
  </ul>
  
  <p>With each product, I added one term, i.e. product1 in food A , etc.</p>
  
  <p>The permalink is like this:</p>
  
  <pre><code>Product : http://abc.com/product/product1
  Taxonomy : http://abc.com/type/food
             http://abc.com/type/food-a
  </code></pre>
  
  <p>But I want the permalink changed to this:</p>
  
  <pre><code>Product : http://abc.com/product-type/food/food-a/product1
  Taxonomy : http://abc.com/product-type/food
             http://abc.com/product-type/food/food-a
  </code></pre>
  
  <p>I tried to configure .htaccess file but I can't change anything. I found in Wordpress Answers a solution is to change the "<em>Rewrite</em>" in  <strong>register_taxonomy</strong> function but I can't change anything again. </p>
  
  <pre><code>'rewrite'=&gt;array('hierarchical' =&gt; true,'slug' =&gt; 'product-type')
  </code></pre>
  
  <p>I already added products, and now I can't find any way to change the permalinks. I hope someone can help me to solve this problem.</p>
  
  <p>Thanks</p>