Forums

[resolved] Subcategories and permalinks (4 posts)

  1. JonathanDrain
    Member
    Posted 6 years ago #

    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?

  2. moshu
    Member
    Posted 6 years ago #

    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.

  3. JonathanDrain
    Member
    Posted 6 years ago #

    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.

  4. kidokitty
    Member
    Posted 6 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.