Skip Navigation

[Gelöst] Displaying a custom taxonomy as dropdown list in a widget

This support ticket is created vor 7 Jahre, 4 Monate. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 Antwort, has 2 Stimmen.

Last updated by Minesh vor 7 Jahre, 4 Monate.

Assisted by: Minesh.

Author
Artikel
#465535
Screen Shot 2016-12-08 at 20.17.39.png

I am trying to: create a dropdown widget for a custom hierarchical taxonomy called locations.

I visited this URL:
https://toolset.com/forums/topic/show-taxonomy-in-a-widget-2/
And it seems like a good idea. But it looks like this goes in the php template rather than in the functions.php file.

How do I register a custom taxonomy as a custom widget in WP?
Or am I going about this the wrong way?

In my attached screengrab you can see my custom taxonomy - dislpayed as a custom menu in a sidebar widget. Ideally I'd like all of this to appear in a dropdown list as it's taking up a lot of space.

It seems like this question comes up a lot and I've been searching the forum for over an hour and nothing I've tried has worked.

Thanks for your support!

#465659

Minesh
Supporter

Languages: Englisch (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - I need bit more information. You just wanted to display hierarchical taxonomy in dropdonw only. Do you need any action with dodrpdown?

There is a workaround but it is workaround that needs some fixes.
=> Create a custom search view
-- https://toolset.com/documentation/user-guides/front-page-filters/
=> Add taxonomy filter by clicking on "New Filter" button from section "Filter Editor" and Submit button
=> from section "Custom Search Settings" select option:
-- Let me choose individual settings manually
-- Always show all values for inputs
=> Head to Appearance > Widgets and include the "WP Views Filter" Widget to your preferred Widget Ready Area and configure it
=> Hide 'submit' button using some CSS or JS

OR

You can try following things:
=> http://stackoverflow.com/questions/26076446/hierarchical-taxonomy-dropdown-wordpress
=> hidden link

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.