Skip Navigation

[Resolved] Categories as drop down box in form

This thread is resolved. Here is a description of the problem and solution.

Problem:
Categories as drop down box in form how to make it as select dropdown

Solution:
To display taxonomy as dropdown you should set your taxonomy as "Hierarchical" by editing your taxonomy from:
=> Toolset => Taxonomies => Edit your taxonomy
=> Under section "Taxonomy Type" set it as "Hierarchical" and save your taxonomy

Once your taxonomy set as Hierarchical, to display the taxonomy as drop-down - you should use the following shortcode:

[cred_field field='category' display='select' single_select='true' output='bootstrap']

Relevant Documentation:
https://toolset.com/documentation/user-guides/cred-shortcodes/#cred_field

0% of people find this useful.

This support ticket is created 6 years, 4 months ago. 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.

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 2 replies, has 2 voices.

Last updated by jillT 6 years, 4 months ago.

Assisted by: Minesh.

Author
Posts
#922644

I have a cred form to submit content to a custom post type with custom categories.

I would like the categories in a drop-down box where the submitter can select just one. Can you point me in the right direction to do this please.

#922791

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

To display taxonomy as dropdown you should set your taxonomy as "Hierarchical" by editing your taxonomy from:
=> Toolset => Taxonomies => Edit your taxonomy
=> Under section "Taxonomy Type" set it as "Hierarchical" and save your taxonomy

Once your taxonomy set as Hierarchical, to display the taxonomy as drop-down - you should use the following shortcode:

[cred_field field='category' display='select' single_select='true' output='bootstrap']

Where:
- Change 'category' to your taxonomy name

#922836

Thank you - that worked nicely