• Resolved jonathandrain

    (@jonathandrain)


    I’m using Apache 1.3.32 and I’d like to have my categories as follows. Can someone tell me if this is possible?

    1) For a page “stew” in a category “recipes”, the permalink url should be:
    example.com/recipes/stew.html

    2) For a page “apple-pie” in category “pie”, where “pie” is a subcategory of “recipes”, the url should be:
    example.com/pie/apple-pie.html

    3) example.com/recipes/ will list the excerpts of all pages of the category “recipes”, including those of any subcategories. Likewise, example.com/pie/ will list the excerpts of all in the pie category.

    Is this possible?

Viewing 3 replies - 1 through 3 (of 3 total)
  • moshu

    (@moshu)

    No/Yes ??
    1. Is “stew” a Page (as defined here: Pages) or a post? If a Page, they don’t have categories.
    2. Will be: eample.com/recipes/pie/apple-pie
    3. That’s how WP works out of the box.

    Thread Starter jonathandrain

    (@jonathandrain)

    1. It’s a Post. Pages have too many limitations – no replies, no showing up in categories, no automatic excerpting in categories…

    2. I don’t want that. I want to have as few subdirectories as possible for the sake of nice concise URLs. My category will be named such that pie automatically implies that it’s a recipe. Is there any way to do it like that?

    3. Good.

    Try using:

    /%category%/%postname%.html in your permalink structure, using recipes as your category base.

    So if your category is pie, and the post slug is apple-pie, it should show up as recipes/pie/apple-pie.html

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Subcategories and permalinks’ is closed to new replies.