# Loading in Wordpress

First, make sure you have enabled support for the WordPress Consent Mode:

* Log in to your account at <https://www.abconsent.com>.
* Open your CMP configuration.
* Go to the **"Add-ons"** page.
* Enable the **"WP Consent API connector"** option.
* Save and publish your changes.

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

Make sure to activate the [WP Consent API](https://wordpress.org/plugins/wp-consent-api/) addon in your WordPress account.

## Then, 2 methods, via the plugin or directly in the source code 👍

**A) Via the Sirdata CMP extension**

1. **Download the plugin**

{% embed url="<https://wordpress.org/plugins/sirdata-cmp/>" %}

2. **In Wordpress select “Add an extension”** in the Extensions section

<figure><img src="/files/PmetrMqe0z5qCW9xqyUR" alt=""><figcaption><p>Add the extension</p></figcaption></figure>

3. **Select “Upload extension”**, “Choose file” and import the extension zip. Finally, click “Install”

<figure><img src="/files/pXKGeUPM2tyNF7bwqX7l" alt=""><figcaption><p>Upload the extension</p></figcaption></figure>

4. Once the installation is complete, **click on “activate extension”**

<figure><img src="/files/UtSHEoyN3Nr29WIN46cr" alt=""><figcaption><p>Activate the extension</p></figcaption></figure>

5. **The Sirdata plugin is activated** on your Wordpress, all that remains is to configure it

<figure><img src="/files/g1xqZ4G2yz33QNty5PUw" alt=""><figcaption><p>Succes !</p></figcaption></figure>

**B) Directly in the source code of your template**

Here are the steps to copy/paste the Sirdata CMP tag into the header of your WordPress website.

1. Select "Theme Editor" in the "Appearance" section:

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

2. In your active WordPress theme, select the theme header (file: header.php): Select header.php.

<figure><img src="/files/3WLeFIKaztRZEuiaNnMI" alt=""><figcaption></figcaption></figure>

3. Paste the code snippet of the CMP just above the tag:

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

4. Save the modification of the file:

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

That's it! Your Sirdata CMP is now deployed on your WordPress website.


---

# 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://cmp.docs.sirdata.net/en/install/in-a-cms/loading-in-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.
