[page_select_field]
The shortcode designed to create a dropdown select field that allows users to choose from a list of pages.
Product
Shortcode Attributes
- label – The label text displayed above the dropdown select field.
- Options: Any text value.
- placeholder – The placeholder text displayed in the dropdown when no option is selected.
- Default:
Select Page. - Options: Any text value.
- Default:
- pages – A comma-separated list of page IDs to include in the dropdown.
- Options: Any numeric value.
Example Usage
[page_select_field label="Choose a Page" placeholder="Select a Page" pages="1,2,3"]
Results
| Example This example will generate a dropdown select field with the label “Choose a Page” and the placeholder “Select a Page”. The dropdown will include pages with IDs 1, 2, and 3. |
data-post-type="page".