WordPress.org

Ready to get started?Download WordPress

Forums

Making sub-categories path to include parent category (3 posts)

  1. combus
    Member
    Posted 5 years ago #

    Hi all, I'm working on a theme which needs to make subcategories stored on the parent cateory path...

    For example, the parent category is "Parent", and the child is "Child". How can I make the path to that subcategory to be "parent/child" instead of just "child"?

    Thanks in advance,
    Combus

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    There are no "paths" for categories as such in WordPress - just relationships. Simply make Child a sub-category of Parent and then let WP do its thing.

  3. combus
    Member
    Posted 5 years ago #

    That's what I tried, but the URLs keep beign "/child" and not "parent/child"

    Also, how do I make child categories to search for the parent category template? Thanks in advance!

Topic Closed

This topic has been closed to new replies.

About this Topic