wordpress中从url地址中删除taxonomy分类
http://shanxiyejin.new.com/keshi/linchuang //如这里的keshi
http://shanxiyejin.new.com/keshi/linchuang //如这里的keshi
http://shanxiyejin.new.com/keshi/linchuang //如这里的keshi
我使用了TaxoPress
TaxoPress
这个taxomony管理的插件
如上设置就去掉了url中的keshi,固定链接那里要保存一次
'travel-category', //taxonomy base
'destination', // custom post type
'rewrite' => array( 'slug' => '/', 'with_front' => FALSE )
register_taxonomy(
'travel-category', //taxonomy base
'destination', // custom post type
'rewrite' => array( 'slug' => '/', 'with_front' => FALSE )
);
register_taxonomy(
'travel-category', //taxonomy base
'destination', // custom post type
'rewrite' => array( 'slug' => '/', 'with_front' => FALSE )
);
上面是网上看的代码解决方式