rewrite rules - Custom post type + category archive page

I have default post type "post" and created custom post type "restaurants".I have categories (not t

I have default post type "post" and created custom post type "restaurants". I have categories (not taxonomy): cat1 and cat2. I want to work with same categories on both post types and I don't want to create taxonomy for custom post type. If I visit site/cat1 or site/cat2 I will see posts which contain these categories. I need to make archive pages for cpt like this: site/restaurants/cat1 site/restaurants/cat2

I can easily do that by adding rewrite rules. But I think this is not a perfect way: for example, sitemap.xml will not contain these pages.

Do you know the way to implement it correctly?

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

相关推荐

  • rewrite rules - Custom post type + category archive page

    I have default post type "post" and created custom post type "restaurants".I have categories (not t

    16小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

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

关注微信