> ## Content Index
> Fetch the complete content index at: https://getpublii.com/dev/llms.txt
> Use this file to discover other available public pages before exploring further.

# Posts dropdown

- URL: https://getpublii.com/dev/posts-dropdown/
- Published: 2019-03-23T13:59:34.074Z
- Updated: 2025-01-18T21:23:54.325Z
- Description: The posts dropdown can be used for situations where you want to allow users of your theme to use a specific relation to the given…
- Author: Tomasz Dziuda
- Tags: Fields, Theme Settings API

The posts dropdown can be used for situations where you want to allow users of your theme to use a specific relation to the given post.

It can be used e.g., to specify the privacy policy page:

```json

{
     "name": "privacyPolicyPage",
     "label": "Privacy Policy",
     "group": "GDPR",
     "value": "",
     "allowedPostStatus": ["any"],
     "type": "posts-dropdown",
     "multiple": false
}
```

![Posts dropdown list](https://getpublii.com/dev/media/posts/120/posts-dropdown.svg)

The posts dropdown returns the ID/s of the selected post/s as a value, so it should be connected with the use of the [getPost](#INTERNAL_LINK#/post/101) or [getPosts](#INTERNAL_LINK#/post/102) helper. If the **multiple** option is set to true, then a string with IDs separated by commas is returned.

The **allowedPostStatus** parameter allows the following values:

-   any
-   draft
-   hidden
-   featured
-   published
-   excluded

The **any** value means any other post status, so there is no need to specify any other statuses in the array with post statuses values.
