> For the complete documentation index, see [llms.txt](https://docs.acpt.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.acpt.io/developers/functions/assoc_acpt_taxonomy_to_acpt_post.md).

# assoc\_acpt\_taxonomy\_to\_acpt\_post

Associate a custom taxonomy to a custom post type

Associate a custom taxonomy to a custom post type.

### Usage

```php
assoc_acpt_taxonomy_to_acpt_post('new-tax', 'page');
```

### Parameters

| Parameter   | Type   | Required | Description        |
| ----------- | ------ | -------- | ------------------ |
| `taxonomy`  | string | Required | The taxonomy slug  |
| `post_type` | string | Required | The post type slug |

### Return

| Type   | Description                           |
| ------ | ------------------------------------- |
| `bool` | `true` on success, `false` on failure |
