• Resolved Christopher McMahon

    (@cmcmahon)


    Is it possible for the dropdown feature to list the taxonomy in hierarchal order?

    For instance I have a CTP for locations with a location taxonomy listed as North America > United States > Ohio and would like the dropdown to reflect the parent/child relationship

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author YMC

    (@wssoffice21)

    Hello!
    You can customize the filter as you like. To do this, you can use a filter:
    add_filter(‘ymc_filter_custom_layout_FilterID_LayoutID’, ‘my_custom_filter_layout’, 10, 5);
    Inside the filter, you can use any WordPress functions. The main thing here is to stick to the html structure.
    Or, you can create a custom dropdown and job handlers for each list element (see SMART FILTER JS API or Filter Hooks).

    https://github.com/YMC-22/smart-filter

    • This reply was modified 3 years ago by YMC.
    • This reply was modified 3 years ago by YMC.
    • This reply was modified 3 years ago by YMC.
    Plugin Author YMC

    (@wssoffice21)

    The plugin has only basic filter layouts. To create a custom filter, you need to manually create. To do this, you can bind to the filter add_filter(‘ymc_filter_custom_layout_FilterID_LayoutID’, ‘my_custom_filter_layout’, 10, 5); which allows you to create any filter, or you can separately create dropdowns and then, using the javascript filter API and hooks, add the necessary handlers to each element of the list and call the filter… it all depends on your fantasies)

    Plugin Author YMC

    (@wssoffice21)

    Glad to help you!

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

The topic ‘Dropdown Filter – hierarchal?’ is closed to new replies.