Get wp.me shortlinks is a WordPress ability from Jetpack — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Get wp.me shortlinks

Read-only
Jetpack Backup & Site Management jetpack-shortlinks/get-shortlinks

Return wp.me shortlinks for a set of posts, and optionally the site homepage.

Requires the Jetpack plugin on WordPress 6.9+. Abilities are registered by several bundled Jetpack packages (automattic/jetpack-backup, jetpack-connection, jetpack-forms, jetpack-stats) plus the main plugin's own registrars for Related Posts, Shortlinks, Sitemaps, Newsletter/Subscriptions, and Monitor. Permission requirements vary by ability — most gate on 'manage_options', 'jetpack_admin_page', or 'view_stats', while Forms abilities use 'edit_pages'. Backup abilities only register when a Backup product/plan is active; Sitemaps, Monitor, and Newsletter abilities only register when their respective module is turned on.

What it does

This ability returns Jetpack's wp.me shortlinks for up to 100 given post IDs, each with the post's ID, title, post type, shortlink, and target URL, and can optionally prepend a single entry for the site homepage. Post IDs that don't exist, aren't readable by the current user, or belong to a post type without shortlink support are silently omitted rather than causing an error, so the result array may be shorter than the input. It requires the site to have an active Jetpack connection; an unconnected site returns jetpack_shortlinks_blog_id_unavailable. This ability only registers while the Shortlinks module is active.

See it in action

You ask your AI assistant

"Get me wp.me shortlinks for posts #101, #102, and #103, plus the homepage."

Inputs

Name Type Required Description
post_ids array No Up to 100 post IDs to fetch shortlinks for; order is preserved.
include_blog boolean No When true, prepend a single entry for the site homepage (post_id 0, post_type "blog"). Defaults to false.

Returns

An array of objects, each with post_id, post_title, post_type, shortlink, and target_url.

Permission

The current user must have the 'edit_posts' capability, and readable access to each requested post (unreadable posts are skipped rather than causing failure).

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.