doushuhuai7247 2017-03-21 00:40
浏览 28
已采纳

如何在wordpress URL中添加类别和子类别

How to add Category and sub category in wordpress URL. In settings -> permalink settings i change my url structure as /%category%/%postname%/%post_id%/ but still url structure is product/postname/ how can i change this to www.mydomain.com/category/subcategory/postname anyone can help?

  • 写回答

1条回答 默认 最新

  • drmy1050 2017-03-21 00:59
    关注

    Make a category structure with parent and child categories, and use this code in the permalinks

    /%category%/%postname%/
    

    while selecting a category just select the child category not main category and you will have a structure like this www.mydomain.com/category/subcategory/postname

    for example if you have a structure like this main category Cars and sub categories are (Honda, Toyota, BMW) then while adding a post just select the sub categories whic are "Honda, Toyota, BMW" and post it

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?