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
Post a Comment