> For the complete documentation index, see [llms.txt](https://tigriweb.gitbook.io/components/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tigriweb.gitbook.io/components/meta/posttypemultiple.md).

# PostTypeMultiple

[TwebMetaPostTypeMultipleControl](https://github.com/tigriweb/components/blob/master/meta/TwebMetaPostTypeMultipleControl.js)

<div align="left" data-full-width="false"><figure><img src="/files/AbAVb0GIPqHOema4sEeg" alt=""><figcaption></figcaption></figure></div>

<details>

<summary>{ label, help, postType*, metaKey* }</summary>

```jsx
/**
 * @param {string} [label] - Component label.
 * @param {string} [help] - Component description.
 * @param {string} postType - The post type name.
 * @param {string} metaKey - Registered meta key from register_post_meta().
 */
```

</details>

{% code title="functions.php" overflow="wrap" %}

```php
register_post_meta( 'post_type_name', 'test_posts', array(
	'type'         => 'array',
	'default'      => array(),
	'single'       => true,
	'show_in_rest' => array(
		'schema' => array(
			'type'  => 'array',
			'items' => array(
				'type' => 'number'
			)
		)
	),
) );
```

{% endcode %}

{% code title="index.js" overflow="wrap" %}

```jsx
import {
	TwebMetaPostTypeMultipleControl,
} from '@tigriweb/components/meta';
```

{% endcode %}

{% code title="index.js | PanelBody" %}

```jsx
<TwebMetaPostTypeMultipleControl
	label={ __('Posts Label', 'your-theme-name') }
	help={ __('Posts Description', 'your-theme-name') }
	postType="post"
	metaKey="test_posts"
/>
```

{% endcode %}
