# WordPress

## Connection

When you're setting up your first workflow with WordPress, you will need to create a [Connection](https://docs.getmesa.com/going-further/credentials) in order to connect MESA with WordPress.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FTqoTlaW5PYL7pmL95oLW%2Fimage.png?alt=media&#x26;token=7fac0bfb-1d40-4ab7-b5b5-1acbbb35f17c" alt=""><figcaption></figcaption></figure>

To create a WordPress connection, login to your account at <https://login.wordpress.org/>

First, copy your Hostname by selecting the URL from your search bar while within your dashboard and paste it into the Hostname field of the WordPress step in your workflow. This should be the URL including `https://` up to (but not including) `/wp-admin/`

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FYbAFXxZpqa7a4V1RiXIR%2Fimage.png?alt=media&#x26;token=ab5b2b4e-1477-45e3-affb-936cbbd97d07" alt=""><figcaption></figcaption></figure>

Next, open the Users menu from the left sidebar of the WordPress dashboard and click on the user of the WordPress account that you want to connect with. On the Profile page, scroll down and copy the Username and paste it in the Username field of your WordPress step.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2F0lztxendKltWyDmjTsvG%2Fimage.png?alt=media&#x26;token=058522a2-7885-456e-8ebc-22906509d815" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FAZvmdedIms3DpiH5iBd4%2Fimage.png?alt=media&#x26;token=af7967d3-4bf4-4b2d-8aa8-92181e1f2f3d" alt=""><figcaption></figcaption></figure>

Lastly, while still in the Profile page, scroll down to the Application Passwords and enter MESA in the New Application Password Name field. Then, click Add Application Password.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FbBFDH9XrGNSZntMrYZDS%2Fimage.png?alt=media&#x26;token=2b9c411b-619a-416b-ab9f-8886c2d187f3" alt=""><figcaption></figcaption></figure>

Copy the generated password and paste it into the Password field or your WordPress step in your workflow.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FytQLhD7k8kzongzenMVk%2Fimage.png?alt=media&#x26;token=ba6b5697-4bd7-4242-9961-1cf3d93d12e3" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FHBzUFH7fEU78GZQqzCv2%2Fimage.png?alt=media&#x26;token=8eb2af6b-9452-4d71-814b-ac5ef6fcc3bf" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
The New Application Password can only be viewed and copied during the creation process. Be sure to save it if you will need to reference it in the future.
{% endhint %}

Once that's done, click the Add connection button to complete your connection setup. You should now see your new connection added to the dropdown when the step updates.

<figure><img src="https://3425906282-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1H6u1HQc3Iew7ATmmiCi%2Fuploads%2FH7OW0wlQjpvrP6Qa8w8n%2Fimage.png?alt=media&#x26;token=de576068-c5bd-42d7-a27a-6043f9497338" alt=""><figcaption></figcaption></figure>


---

# 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://docs.getmesa.com/connect/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.
