开发者

Permalinks for Custom Post Type with Custom Taxonomy

开发者 https://www.devze.com 2023-02-11 10:11 出处:网络
I have a custom post type called products, which I am rewriting as store, I have registered a hierarchical taxonomy to products called products produc开发者_StackOverflow社区t-categories.

I have a custom post type called products, which I am rewriting as store, I have registered a hierarchical taxonomy to products called products produc开发者_StackOverflow社区t-categories.

I would like my permalinks to look like.

mysite.com/store/cat-name/post-name

so permalink structure would look something like..

&post_type&/%taxonomy_name%/%post_name%

Is there a way to do this in Wordpress 3.1? I'm running the latest release candidate.

I can get to mysite.com.store/post-name right now with

'rewrite' => array('slug' => 'store')

when I register my custom post type


The custom post permalinks plugin solved this for me.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号