Hierarchical field for post type

This topic contains 9 replies, has 3 voices, and was last updated by  Alex Rollin 6 years, 6 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #471615

    zedus
    Free User
    Post count: 5

    Dear WpGeoDirectory,

    What’s the best way to achieve hierarchical attributes for a listing?
    For example, I need to publish a listing for a car with the following attributes:
    Brand: AUDI
    Model: A4
    In the publish form, the “Model” select box should be populated dynamically based on the “Brand” selected.
    Two levels of hierarchical could be enough, but unlimited levels would be better ( Brand: AUDI, Model: A4, Version: ALLROAD Quattro )
    Can’t use categories for Brand/Model because It’ll allows a listing to be at same time an AUDI and a BMW.

    Thanks for your help

    #471618

    Kor
    Moderator
    Post count: 16516

    Hi Zedus,

    Thanks for your post. You can possibly try setting your custom fields as “Required”. For example, it is required that you select an item for model and brand before you can submit the listing. https://wpgeodirectory.com/docs/core-place-settings/#custom

    #471621

    zedus
    Free User
    Post count: 5

    Hi Kor and thanks for your reply.

    I’m not understanding your suggestion, that prevent the form from being submitted without the required fields being compiled.

    What I looking for, are 2 different dropdown select fields where the options of the second field are related to the selected option of the first field. Similar to when you choose country and region, i.e.: you can’t see the regions of USA if you choose Canada as Country

    #471635

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    GD does not currently feature a dependent drop-down field.

    Some members have chosen to use a CPT and category instead, both of which can be placed in the search bar.

    For example:

    CPT – Audi
    – Category – Model#

    #471644

    zedus
    Free User
    Post count: 5

    Hello Alex and thanks for your reply

    CPT stands for custom post type? If so, creating a CPT for each Brand will become soon not sustainable.
    It’s a pity because I can see tons of different use cases for this feature, and cannot find any plugin that suit this need.

    Please consider develop this feature in near future, I’m willing to write specifications or do some testing if needed! 🙂

    #471651

    Alex Rollin
    Moderator
    Post count: 27815

    You can probably find someone here to build it for you, for V2 probably:
    https://geodirectoryexperts.com/experts/

    #471653

    zedus
    Free User
    Post count: 5

    Hi Alex,

    we have an internal development team, just don’t want to reinvent the wheel 🙂

    Anyway, thanks for your help.

    Best regards

    #471654

    Alex Rollin
    Moderator
    Post count: 27815

    This is how to do it:
    https://wpgeodirectory.com/custom-field-improvements-in-new-v1-6-6/
    as a predefined custom field.

    #471658

    zedus
    Free User
    Post count: 5

    Hi Alex,

    thanks for the link, that’ll sure help us

    #471719

    Alex Rollin
    Moderator
    Post count: 27815

    You’re welcome 🙂

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount