[team_select_field]
The shortcode designed to generate a select dropdown field populated with team members.
Product
Shortcode Attributes
There are a number of shortcode attributes available which you can use to customize the output.
- label – The label text displayed above the dropdown field.
- Options: Any text value.
- placeholder – The placeholder text displayed in the dropdown field before a post is selected.
- Default:
Select Post. - Options: Any text value.
- Default:
- categories – List of category IDs to filter team members by.
- Options: Any numeric value. Use commas to separate.
- tags – List of tag IDs to filter team members by.
- Options: Any numeric value. Use commas to separate.
- orderby – Specifies the criteria for ordering the team members.
- Default:
title. - Options:
id,date,title,menu_order,rand. Specify one only.
- Default:
- order – Specifies the order of the team members.
- Default:
asc. - Options:
asc,desc. Specify one only.
- Default:
Example Usage
[team_select_field label="Select a Team Member" placeholder="Choose..." orderby="date" order="DESC"]
Result:
<div class="hic-simple-select-element select-posts" data-post-type="team">
<div class="input-group">
<label>Select a Team Member</label>
<select class="hic-select-post">
<option value="" disabled="" selected="">Choose...</option>
<option value="https://example.com/team-member/john_doe/">John Doe</option>
<option value="https://example.com/team-member/jane_smith/">Jane Smith</option>
<!-- More team members -->
</select>
</div>
</div>
This example displays a dropdown list of team members with the label “Select a Team Member” the placeholder “Choose..”, ordered by date in descending order. |
team post type exist in your WordPress.