[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.

  1. label – The label text displayed above the dropdown field.
    • Options: Any text value.
  2. placeholder – The placeholder text displayed in the dropdown field before a post is selected.
    • Default: Select Post.
    • Options: Any text value.
  3. categories – List of category IDs to filter team members by.
    • Options: Any numeric value. Use commas to separate.
  4. tags – List of tag IDs to filter team members by.
    • Options: Any numeric value. Use commas to separate.
  5. orderby – Specifies the criteria for ordering the team members.
    • Default: title.
    • Options: id, date, title, menu_order, rand. Specify one only.
  6. order – Specifies the order of the team members.
    • Default: asc.
    • Options: asc, desc. Specify one only.

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.
Ensure that the team post type exist in your WordPress.