> For the complete documentation index, see [llms.txt](https://cmp.docs.sirdata.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cmp.docs.sirdata.net/en/install/in-a-cms/loading-in-wordpress.md).

# 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="https://1869615683-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-1972196547%2Fuploads%2FG1THel05MUmRm5ZbeUuX%2Fimage.png?alt=media&amp;token=f05b38b6-32c8-40f6-b4fc-6bc652e8ee7c" 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="https://1869615683-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-1972196547%2Fuploads%2F1yWOyDuGEErtAHiuRT0g%2FW1.png?alt=media&amp;token=aa7a82c9-c95d-48d4-9bc3-e17fb30e6e33" 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="https://1869615683-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-1972196547%2Fuploads%2FWmx4gaQgJ8fp9gFRsviI%2FW2.png?alt=media&amp;token=2646fe60-c367-4f25-b1b5-92d7cf030085" alt=""><figcaption><p>Upload the extension</p></figcaption></figure>

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

<figure><img src="https://1869615683-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-1972196547%2Fuploads%2F64jEbXa6exQpju0kJ5Tv%2F3.png?alt=media&amp;token=e00bdb0a-b4e1-4639-8e6e-169cd74555de" 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="https://1869615683-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-1972196547%2Fuploads%2FR1pQ3eANS1GYVy9tWqaJ%2Fw4.png?alt=media&amp;token=4a0f052e-9b18-4413-ab8f-f0a057bc9115" 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="https://1869615683-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-1972196547%2Fuploads%2FCbUvWjvflca0SSl6mkJU%2Fimage.png?alt=media&amp;token=d14ca67d-8b98-4fb0-9c0b-add2f8e0df8e" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1869615683-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-1972196547%2Fuploads%2FpTY8zRFdrj33DQeUNxtj%2Fimage.png?alt=media&amp;token=e73a1464-d940-44b3-811e-f92fe69a1d7c" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1869615683-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-1972196547%2Fuploads%2F8if2jo9hPMr5QRMWNlGd%2Fimage.png?alt=media&amp;token=3cb43a03-905f-4e3a-b601-ccaf1e5e91b3" alt=""><figcaption></figcaption></figure>

4. Save the modification of the file:

<figure><img src="https://1869615683-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUspPnkTFMlMDdGxvAb-1972196547%2Fuploads%2Foz2n7cGsyKiV5njzhF3w%2Fimage.png?alt=media&amp;token=b7702380-638b-4235-914b-5868d4d31b25" alt=""><figcaption></figcaption></figure>

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cmp.docs.sirdata.net/en/install/in-a-cms/loading-in-wordpress.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
