categories - Modify category permalink to use post type slug

I have multiple custom post types and default post type that all need categories. Right now, each post type is using the

I have multiple custom post types and default post type that all need categories. Right now, each post type is using the default category taxonomy.

I would like the archive category taxonomy URL to be post-type-name/category-name for custom post types and /blog/category-name/ for default posts. Then each one of those URLs will just pull in posts of that post type within that category.

The single post views would just be post-type-name/post-name while the default post will be /blog/post-name/

Is using the default categories the best way of going about this or creating custom taxonomies for each post type?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742258330a4410433.html

相关推荐

  • categories - Modify category permalink to use post type slug

    I have multiple custom post types and default post type that all need categories. Right now, each post type is using the

    1天前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信