wordpress中从url地址中删除taxonomy分类

2022-07-26

 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,固定链接那里要保存一次

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 ) );
register_taxonomy(
       'travel-category', //taxonomy base
       'destination', // custom post type
       'rewrite' => array( 'slug' => '/', 'with_front' => FALSE )
);

上面是网上看的代码解决方式

相关内容
最新

坚持的力量

wordpress建站,视频剪辑拍摄,动画制作