Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter geoffe

    (@geoffe)

    Can anyone point me to the code where %category% is interpreted to see if I can find a way to code the subcategories in?

    Hi! If you create a parent category with a child category, when you Write a Post, associate the post with the child category. Do not check the parent category box.

    When you do that (and assuming your permalink is set to /%category%/%postname%) your URL will look like

    example.com/parentcateg/childcateg/title-of-your-post

    Please note that
    example.com/parentcateg/childcateg
    will yield a 404 page

    While
    example.com/parentcateg
    will be a duplicate of
    example.com/categories/parentcateg
    (assuming you didn’t define anything for Categories in your Permalinks set-up)

    Thread Starter geoffe

    (@geoffe)

    Exactly what I wanted to know! I’m such a simpleton.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘using ?tegory% in permalinks for subcategories’ is closed to new replies.