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

# Tags dropdown

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

The tags dropdown can be used for a situations where you want to allow users to use a specific relation to the given tag.

It can be used e.g. to specify tag which will be used to create posts listing:

```json

{
     "name": "listingTag",
     "label": "Post listing",
     "group": "Layout",
     "note": "Creates a list of posts with the selected tag",
     "value": "",
     "type": "tags-dropdown",
     "multiple": false
}
```

![Tags dropdown list](https://getpublii.com/dev/media/posts/121/tags-dropdown.svg)

The tags dropdown returns the ID of the selected tag as a value so it should be connected with use of the [getPostsByTag](#INTERNAL_LINK#/post/103) or [getPostByTag](#INTERNAL_LINK#/post/104) helpers. If the **multiple** option is set to **true**, then string with IDs separated by comma is returned.
