WordPress.org

Forums

Permalinks: Subcategory only? (4 posts)

  1. jeremyschultz
    Member
    Posted 2 years ago #

    I'm curious if anyone knows how to get a category slug in the permalink consisting of just the subcategory.

    Using the WP No Category Base plugin, I've gotten as far as:

    http://dev.mysite.com/category/subcategory/post-name/

    All subcategories are nested into parent categories for the sake of adding them into the navigation bar. But we want to remove category/ from the URL. The only way I see that works is to un-nest the subcategories and remove the category altogether.

    Thanks!

  2. jeremyschultz
    Member
    Posted 2 years ago #

    I should clarify that "category" in my example URL is the category name, not "category" that typically precedes it.

    http://dev.mysite.com/<category_slug>/<subcat_slug>/post-name/

  3. tacki
    Member
    Posted 2 years ago #

    also have the same question...

  4. esmi
    Forum Moderator
    Posted 2 years ago #

    @tacki: As per the Forum Welcome, please post your own topic. Your problem - despite any similarity in symptoms - is likely to be completely different.

Topic Closed

This topic has been closed to new replies.

About this Topic