# WordPress

{% hint style="warning" %}
**NOTE**: A paid BlitzBear account is required to use the WordPress integration.
{% endhint %}

## How to connect

Follow the instructions below to connect your BlitzBear project to your WordPress account (est. time of 2 min).

**Step 1**: Visit your `/wp-admin`, navigate to *All Users*, then click the user that you want to connect to BlitzBear.

<figure><img src="/files/VfCL3W5XMwdd3LsaZIrK" alt=""><figcaption></figcaption></figure>

**Step 2**: Scroll down to the *Name* section and make sure the user has an *Editor* role or higher.

<figure><img src="/files/ekkESzp7bkq04iYat8O0" alt=""><figcaption></figcaption></figure>

**Step 3:** Scroll to the *Application Passwords* section, enter "BlitzBear", then press the Enter key.

<figure><img src="/files/5JZ5Zt6LKmEVpRTlGN6Z" alt=""><figcaption></figcaption></figure>

**Step 4:** Copy the generated *Application Password* to your clipboard.

<figure><img src="/files/ktRs6xQTd1R8uxF3gvuE" alt=""><figcaption></figcaption></figure>

**Step 5:** Open your BlitzBear project editor and enter the following:

* **Site Address (URL)** - This is your WordPress blog URL and will be pre-filled based on the URLs you submitted. Please confirm or update the URL to make sure it is correct.
* **Username** - Enter your Username from Step 1 (NOTE: Your username is typically your email address, and may not be "BlitzBear". Refer to the screenshot from [Step 1](https://support.blitzbear.com/integrations/wordpress#how-to-connect)).
* **Application Password** - Enter your Application Password from Step 4

Then click Submit. Once your WordPress account is connected, you will now see 'Publish' buttons in your BlitzBear article dashboard. Once you click 'Publish', your WordPress post will be created or updated with those changes.

***

## How to publish changes to WordPress

From your [BlitzBear dashboard](https://app.blitzbear.com/dashboard), open an article then click the *Publish Changes* button.

<figure><img src="/files/xGBkrvhAWKaZtHDKhNFq" alt=""><figcaption></figcaption></figure>

* **For newly generated articles:** Once published, your WordPress post will be created in *Draft* mode. This includes the WordPress post's title, cover image, excerpt, and content.
* **For optimized existing articles:** Once published, your WordPress post will be updated with the list of SEO optimization changes. This includes the WordPress post's title, excerpt, and content.
  * **NOTE:** BlitzBear will first search for a matching URL slug from your WordPress posts collection, but if none are found then BlitzBear will also search from your WordPress pages collection and update the page accordingly if one is found.

You will see the article's status change to *Published* from your BlitzBear dashboard.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.blitzbear.com/integrations/wordpress.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
