> For the complete documentation index, see [llms.txt](https://docs.hostinger.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hostinger.com/wordpress/hostinger-plugins/ai-plugin/abilities/custom-post-types.md).

# Custom Post Types

Custom Post Types abilities of the Hostinger AI plugin's WordPress site MCP server. List the public content types registered on the site and manage their entries.

List the public content types registered on the site and manage their entries.

**Available:** Always.

| Ability                                                           | What it does                                                                                                                                | Type                             |
| ----------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- |
| [Create Custom Post Type Post](#create-custom-post-type-post)     | Create a post of a custom post type.                                                                                                        | Changes the site                 |
| [Delete Custom Post Type Post](#delete-custom-post-type-post)     | Permanently delete a custom post type post; this cannot be undone.                                                                          | **Destructive** · Safe to retry  |
| [Get Custom Post Type Post](#get-custom-post-type-post)           | Get one custom post type post by ID.                                                                                                        | Read-only                        |
| [Search Custom Post Types Posts](#search-custom-post-types-posts) | Search and filter the posts of a custom post type, such as posts, pages, media, floating elements, my templates, products, with pagination. | Read-only                        |
| [List Post Types](#list-post-types)                               | List the custom post types on the site, including posts, pages, media, floating elements, my templates, products.                           | Read-only                        |
| [Update Custom Post Type Post](#update-custom-post-type-post)     | Update a custom post type post; only the fields you pass change.                                                                            | Changes the site · Safe to retry |

## Create Custom Post Type Post

`hostinger-ai/cpt-create` · Changes the site

Create a post of a custom post type.

| Required parameter | Type   | Description                    |
| ------------------ | ------ | ------------------------------ |
| `post_type`        | string | The custom post type to create |
| `title`            | string | The title of the post          |
| `content`          | string | The content of the post        |

<details>

<summary>Optional parameters (2)</summary>

| Parameter | Type   | Description                                            |
| --------- | ------ | ------------------------------------------------------ |
| `excerpt` | string | The excerpt of the post                                |
| `status`  | string | The status of the post (publish, draft, pending, etc.) |

</details>

<details>

<summary>Description sent to AI tools</summary>

> Create a post of a custom post type. Use when asked to add an entry to a custom post type, such as a portfolio item or an event. Send HTML or block markup; HTML is converted to blocks. Needs `post_type` from `hostinger-ai/cpt-types-list`.

</details>

## Delete Custom Post Type Post

`hostinger-ai/cpt-delete` · **Destructive** · Safe to retry

Permanently delete a custom post type post; this cannot be undone.

| Required parameter | Type    | Description                    |
| ------------------ | ------- | ------------------------------ |
| `post_type`        | string  | The custom post type to delete |
| `id`               | integer | The ID of the post to delete   |

<details>

<summary>Description sent to AI tools</summary>

> Permanently delete a custom post type post; this cannot be undone. Use when asked to remove a custom post. Needs `post_type` from `hostinger-ai/cpt-types-list` and `id` from `hostinger-ai/cpt-search`.

</details>

## Get Custom Post Type Post

`hostinger-ai/cpt-get` · Read-only

Get one custom post type post by ID.

| Required parameter | Type    | Description                 |
| ------------------ | ------- | --------------------------- |
| `post_type`        | string  | The custom post type to get |
| `id`               | integer | The ID of the post to get   |

<details>

<summary>Description sent to AI tools</summary>

> Get one custom post type post by ID. Use when you need the full content of a known custom post. Needs `post_type` from `hostinger-ai/cpt-types-list` and `id` from `hostinger-ai/cpt-search`.

</details>

## Search Custom Post Types Posts

`hostinger-ai/cpt-search` · Read-only

Search and filter the posts of a custom post type, such as posts, pages, media, floating elements, my templates, products, with pagination.

| Required parameter | Type   | Description                    |
| ------------------ | ------ | ------------------------------ |
| `post_type`        | string | The custom post type to search |

<details>

<summary>Optional parameters (5)</summary>

| Parameter  | Type    | Default | Description                                           |
| ---------- | ------- | ------- | ----------------------------------------------------- |
| `search`   | string  |         | Search term to look for in post titles and content    |
| `author`   | integer |         | Filter by author ID                                   |
| `status`   | string  |         | Filter by post status (publish, draft, pending, etc.) |
| `page`     | integer | `1`     | Page number for pagination (starts from 1)            |
| `per_page` | integer | `10`    | Number of posts per page                              |

</details>

<details>

<summary>Description sent to AI tools</summary>

> Search and filter the posts of a custom post type, such as posts, pages, media, floating elements, my templates, products, with pagination. Use when you need the ID of a custom post. Needs `post_type` from `hostinger-ai/cpt-types-list`.

</details>

## List Post Types

`hostinger-ai/cpt-types-list` · Read-only

List the custom post types on the site, including posts, pages, media, floating elements, my templates, products.

No parameters.

<details>

<summary>Description sent to AI tools</summary>

> List the custom post types on the site, including posts, pages, media, floating elements, my templates, products. Use when you need a `post_type` value for the custom post type tools.

</details>

## Update Custom Post Type Post

`hostinger-ai/cpt-update` · Changes the site · Safe to retry

Update a custom post type post; only the fields you pass change.

| Required parameter | Type    | Description                    |
| ------------------ | ------- | ------------------------------ |
| `post_type`        | string  | The custom post type to update |
| `id`               | integer | The ID of the post to update   |

<details>

<summary>Optional parameters (4)</summary>

| Parameter | Type   | Description                                            |
| --------- | ------ | ------------------------------------------------------ |
| `title`   | string | The title of the post                                  |
| `content` | string | The content of the post                                |
| `excerpt` | string | The excerpt of the post                                |
| `status`  | string | The status of the post (publish, draft, pending, etc.) |

</details>

<details>

<summary>Description sent to AI tools</summary>

> Update a custom post type post; only the fields you pass change. Use when asked to edit a custom post. Send HTML or block markup; HTML is converted to blocks. Needs `post_type` from `hostinger-ai/cpt-types-list` and `id` from `hostinger-ai/cpt-search`.

</details>

## Related

* [Abilities Reference](https://docs.hostinger.com/wordpress/hostinger-plugins/ai-plugin/abilities.md)
* [WordPress Site MCP Server](https://docs.hostinger.com/wordpress/hostinger-plugins/ai-plugin/mcp-server.md)
