Hierarchical categories

This topic contains 3 replies, has 3 voices, and was last updated by  Naveen Giri 4 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #507653

    Andy
    Expired Member
    Post count: 46

    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: 27815

    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
    Expired Member
    Post count: 46

    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.

    #508461

    Naveen Giri
    Moderator
    Post count: 1559

    Hi @andy,
    its a customization request. so you can take help of geo experts here.
    https://geodirectoryexperts.com

    you can use

    get_terms

    filter or can use

    geodir_custom_field_input_taxonomy_{$taxonomyname}
    geodir_custom_field_input_taxonomy_post_category

    to change the field html.

    Thanks

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket