30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

Get Post Type Archive SEO

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

Abilityseo/get-post-type-archive-seo
ToolsetYoast SEO — toolset/yoast-seo
GroupYoast SEO › Archives & System Pages
RequiresYoast SEO, active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI 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

NameTypeRequiredWhat it is
post_typestringYesThe post type.

What comes back

NameTypeWhat it is
seoobjectThe computed SEO for the archive, or null when the type has no archive.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent 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_archive types 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


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading