Hierarchical categories

This topic contains 2 replies, has 2 voices, and was last updated by  Andy 3 days, 1 hour ago.

Tagged: 

  • Author
    Posts
  • #507653

    Andy
    Full Member
    Post count: 11

    I have a hierarchical category structure with 3 levels.

    On the frontend Add Listing page, I only want users to be able to select leaf categories (i.e. categories with no children). How can that be achieved?

    Also I would like the selected categories to show their parent categories to help the user understand what they have selected.

    For example, if the taxonomy is:

    Category A
    – Red
    — Square
    — Triangle
    – Blue
    — Square
    — Triangle

    Then I want user to be able to select Square and Triangle but not Category A, Red or Blue.

    When the user has selected Square, it just shows that as “–Square” but I want it to show Category A > Red > Square so they know exactly what they have chosen.

    This is for a CPT called Listings, but I don’t believe that affects the way the categories are working so I thought it best to post it in the Core support board.

    Thanks!

    #507681

    Alex Rollin
    Moderator
    Post count: 20403

    Hello,

    GeoDirectory offers one feature to hide categories on the add listing form, with price packages, but that is used specifically for making sure some categories are used by one package and not another.

    What you are after sounds like it will require a customization, but I will ask the developers if there is a workaround.

    #507759

    Andy
    Full Member
    Post count: 11

    Thanks Alex.

    I am setting up GD as a replacement for a 16-year old software directory that was completely custom-coded. I’ll have more support requests over the next weeks and expect that some customization will indeed be required.

    Just working through it one piece at a time at the moment.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.