> ## Documentation Index
> Fetch the complete documentation index at: https://docs.surgerank.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect WordPress to Publish AI-Optimized Articles

> Connect SurgeRank to WordPress to publish AI-optimized articles in one click, complete with schema markup and meta fields, without leaving the platform.

The WordPress integration lets you publish citation-ready articles directly from the AI Content Engine without copying and pasting. Once connected, your finalized content — complete with schema markup, meta fields, and featured image placeholders — flows straight into WordPress as a draft, ready for your final review before going live.

## Prerequisites

Before connecting, make sure you have:

* A **WordPress.com Business plan or higher**, or a **self-hosted WordPress** installation.
* The **WordPress REST API enabled** (it is on by default for self-hosted sites running WordPress 4.7 or later).

## Connect WordPress

<Steps>
  <Step title="Open the integration settings">
    In SurgeRank, go to **Settings → Integrations → WordPress**.
  </Step>

  <Step title="Enter your site URL">
    Type your WordPress site URL into the field provided (e.g. `https://yoursite.com`).
  </Step>

  <Step title="Generate an Application Password in WordPress">
    In your WordPress admin, navigate to **Users → Profile → Application Passwords**. Enter a name for the password — for example, `SurgeRank` — and click **Add New**. WordPress will generate a password and display it once.
  </Step>

  <Step title="Paste the password into SurgeRank">
    Copy the generated Application Password and paste it into the corresponding field in SurgeRank.
  </Step>

  <Step title="Connect and confirm">
    Click **Connect**. SurgeRank will test the connection against the WordPress REST API and display a confirmation once it succeeds.
  </Step>
</Steps>

## Publishing an article

From the Content Engine editor, click **Publish → WordPress** when your article is ready. You'll be prompted to:

* Choose the **post category** the article should be filed under.
* Set the **publish date** — publish immediately or schedule it for a future date and time.

After you confirm, SurgeRank creates the post as a **draft** in WordPress. Open the post in your WordPress editor to do a final check, then publish it when you're satisfied.

## What SurgeRank sends

When you publish to WordPress, SurgeRank passes the following fields:

| Field                          | Details                                                        |
| ------------------------------ | -------------------------------------------------------------- |
| **Title**                      | The article's SEO-optimized H1                                 |
| **Body (HTML)**                | Full article content, formatted for the block editor           |
| **Meta description**           | The focus summary for search snippets                          |
| **Focus keyword**              | Passed to compatible SEO plugins (e.g. Yoast, Rank Math)       |
| **Schema markup**              | Article structured data injected into the page head            |
| **Featured image placeholder** | An empty featured image slot for you to fill before publishing |

## Disconnecting

To remove the integration, go to **Settings → Integrations → WordPress → Disconnect**. Disconnecting revokes SurgeRank's access to your site but does **not** delete any posts that have already been published.

<Note>
  Published articles are automatically added to SurgeRank's citation monitoring. Once a post goes live, SurgeRank begins tracking whether AI engines — including ChatGPT, Perplexity, and Google AI Mode — start citing the new page.
</Note>
