seo/get-post-type-archive-seo returns the SEO Yoast produces for a post type archive.
A null result usually means the type has no archive rather than that something is broken.
At a glance
| Ability | seo/get-post-type-archive-seo |
| Toolset | Yoast SEO — toolset/yoast-seo |
| Group | Yoast SEO › Archives & System Pages |
| Requires | Yoast SEO, active on the site |
| Capability | manage_options |
| Safety | Read-only — changes nothing |
| Repeatable | Idempotent — running it twice leaves the same result |
| Ships in | AcrossAI Abilities Manager 0.0.34 and later |
How it works
Post type archives exist only for types registered with has_archive, and none of WordPress’s built-in types are. Posts have the blog page; pages have no archive; attachments have no archive.
So asking for the post archive and getting nothing is the correct answer, not a failure — and distinguishing the two is exactly what trips people up.
Custom post types are where archives actually live. A products archive, a case studies archive, an events archive — those are real indexed pages with titles that come entirely from a template, and they are routinely left with a default nobody chose.
The archive is also usually the entry point for a whole content type in search results, which makes its title worth more attention than an individual item’s.
Input
| Name | Type | Required | What it is |
|---|---|---|---|
post_type | string | Yes | The post type. |
What comes back
| Name | Type | What it is |
|---|---|---|
seo | object | The computed SEO for the archive, or null when the type has no archive. |
success | boolean | Whether the call completed. |
message | string | A one-line summary of what happened, suitable for showing a human. |
error_code | string | Present only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation. |
Example
Ask your assistant:
What does our products archive page say?
It resolves to one call:
{
"ability": "seo/get-post-type-archive-seo",
"parameters": {
"post_type": "product"
}
}Worth knowing
- Only
has_archivetypes have one. Built-in types do not. - A null result is usually correct, not an error.
- Custom post type archives are often the entry point for the whole type.
- Read-only.
Related abilities
- Update Post Type Archive SEO — change its template
- List Content Type SEO Settings — which types have archives
Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager
Browse the rest: Every ability, by category