# TaxonomyMultiple

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

<div align="left" data-full-width="false"><figure><img src="https://870798947-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWAokPCWM65E5XQJVixgi%2Fuploads%2FNz8lssgsncREBzYprHGG%2Ftaxonomy-multiple.jpg?alt=media&#x26;token=591552a2-ee43-48bc-a419-8ccc7388bf53" alt=""><figcaption></figcaption></figure></div>

<details>

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

```jsx
/**
 * @param {string} [label] - Component label.
 * @param {string} [help] - Component description.
 * @param {string} taxonomy - The taxonomy 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_categories', 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 {
	TwebMetaTaxonomyMultipleControl,
} from '@tigriweb/components/meta';
```
{% endcode %}

{% code title="index.js | PanelBody" %}
```jsx
<TwebMetaTaxonomyMultipleControl
	label={ __('Categories Label', 'your-theme-name') }
	help={ __('Categories Description', 'your-theme-name') }
	taxonomy="category"
	metaKey="test_categories"
/>
```
{% endcode %}
