开发者

Permalinks for Custom Post Type with Custom Taxonomy

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜