• I need to have the hierarchy show in the drop down – specifically, for a location taxonomy that includes several states and corresponding towns/cities. How do I hook into that?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter GratefulDeb

    (@eventermom)

    Is there ANYONE that can help? It’s been 4 days and no reply. Come on Studiopress.

    Plugin Support Nick C

    (@modernnerd)

    Sorry for the delay, @eventermom.

    One way to display the hierarchy in the search widget is to edit each location with a parent term and add a dash before the name:

    WordPress admin page for a term showing the name prefixed by a dash.

    If you apply this to all child terms like this…

    Admin page for the custom taxonomy showing dashes before the names of all terms

    …you’ll then see the hierarchy reflected in the search widget:

    AgentPress search widget showing child terms with a dash before them

    If you prefer not to relabel your terms in this way, you could look at modifying the labels with a filter or with CSS. I don’t have ready-made code for this, but you could try asking the StudioPress community in case someone else has made the same change: https://my.studiopress.com/community/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Search Dropdown Hierarchy’ is closed to new replies.