[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

  1. label – The label text displayed above the dropdown select field.
    • Options: Any text value.
  2. placeholder – The placeholder text displayed in the dropdown when no option is selected.
    • Default: Select Page.
    • Options: Any text value.
  3. 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.
The shortcode is designed to work with pages only data-post-type="page".