• Resolved fatalx

    (@fatalx)


    Hello,

    So I got an issue that I need some help with.

    I have created a custom post type and a taxonomy for it. Here is an example of the taxonomy hierarchy.

    – A
    – – 1A
    – – 2A
    – – 3A
    – B
    – – 1B
    – – 2B
    – – 3B

    Its pretty standard. When I add a new custom post I want to display two drop down boxes for the user to choose taxonomy categories from. It’s basically rebuilding the wordpress categories box except with dropdowns.

    I have been using wp_list_categories to display the drop down box but here is my issue.

    The first drop down box will display the parent categories with a depth of 1 and the second drop down box should show the sub categories of whatever category the user previously chooses. I have had no luck getting this to work.

    How can something like this be accomplished?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dependent Dropdowns in Custom Posts’ is closed to new replies.