Wordpress - Show parent category AND subcategory name in subcategory archive URL

后端 未结 8 957
滥情空心
滥情空心 2020-12-31 10:26

I\'m having some trouble with Wordpress category/subcategory archive URLs.

For example, I want to be able to display this archive:
http://fa

相关标签:
8条回答
  • 2020-12-31 10:52

    Setting Settings->Permalinks->Category base to '%category%' should give you what you want. According to WP doc:

    Nested sub-categories appear as nested directories in the URI

    See http://codex.wordpress.org/Using_Permalinks.

    0 讨论(0)
  • 2020-12-31 10:54

    The Permalinks settings should be like /%category%/%postname%/ ..

    0 讨论(0)
提交回复
热议问题