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

Start free trial

GeoDirectory List Directory Pages

geodirectory/list-directory-pages returns the WordPress page backing each GeoDirectory role: Add Listing, Search, Location, CPT Archive, Archive Item, and the single-listing Details page.

Each comes with its ID, title, edit link, and whether it still contains GeoDirectory blocks.

At a glance

Abilitygeodirectory/list-directory-pages
ToolsetGeoDirectory — toolset/geodirectory
GroupGeoDirectory › Directory & Pages
RequiresAcrossAI Pro, plus GeoDirectory active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Pro 0.9.16 and later

How it works

A directory page works because it contains the right GeoDirectory blocks. Edit one in the block editor, remove a block by accident, and the page still exists and renders — as an ordinary page with nothing on it.

That failure is invisible from the page list and obvious here, which is why the check is reported per role.

The per-listing-type overrides are the other half. A multi-directory site can point the Add Listing role at a different page per type, and the override beats the site-wide value — so reading only the site-wide assignment describes a page that may not be in use.

Run this before editing any directory page, and again after.

Input

NameTypeRequiredWhat it is
post_typestringNoReport the per-listing-type overrides for this type. Defaults to the site default.

What comes back

NameTypeWhat it is
pagesobjectEach role with its page ID, title, edit link and block status.
overridesobjectPer-listing-type page overrides.
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:

Which pages are our directory pages?

It resolves to one call:

{
  "ability": "geodirectory/list-directory-pages",
  "parameters": {}
}

Worth knowing

  • A directory page with no GeoDirectory blocks renders as an empty page.
  • Per-type overrides beat the site-wide assignment.
  • Run it before and after editing a directory page.
  • Read-only.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading