Support

Account

Home Forums General Issues How to create category + subcategory structure

Helping

How to create category + subcategory structure

    • Koko

    • September 19, 2013 at 9:03 pm

    Hi.
    I decide to use custom fields to create advanced search.
    I have category and subcategory on my website.
    For example, category England includes subcategory London, Swansea and ect.
    Can I create the same structure in custom fields?
    I want to choose any country (dropbox) and then choose any city in this country.

    Thanks!

    • Elliot

    • September 21, 2013 at 2:30 pm

    Hi @koko

    Are you able to change this to useing a taxonomy for location?

    This would make you life many times easier thanks to the native WP checkbox UI.

    If this is not possible to change, you will have to create 2 select fields and populate them yourself using some kind of AJAX call to populate the second choice.

    Sorry there is no easy way for this at the moment.

    Thanks
    E

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

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.