rewrite - How to update the slug and change the Wordpress permalink? -


i have problem permalinks. in site, register custom post type name 'product' , taxonomy 'type' . in taxonomy 'type', added terms :

  • food
    • food a
    • food b
  • drink
    • drink a
    • drink b

with each product, added 1 term, i.e. product1 in food , etc.

the permalink this:

product : http://abc.com/product/product1 taxonomy : http://abc.com/type/food            http://abc.com/type/food-a 

but want permalink changed this:

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 

i tried configure .htaccess file can't change anything. found in wordpress answers solution change "rewrite" in register_taxonomy function can't change again.

'rewrite'=>array('hierarchical' => true,'slug' => 'product-type') 

i added products, , can't find way change permalinks. hope can me solve problem.

thanks


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -