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

# WordPress

> The Mediamonster plugin: a block that places Vault images by their CDN link, with a responsive srcset and the file's alt text.

The plugin adds a **Mediamonster image** block to the block editor. Search your Vault from the block, click an image, and it is placed. Nothing is copied into your Media Library.

## What you need

* A plan with API access and a [key](https://docs.mediamonster.app/api/authentication.md).
* WordPress 6.3 or later.

## Install

1. Download the plugin folder, `integrations/wordpress/mediamonster`, and upload it to `wp-content/plugins/`.
2. Activate **Mediamonster** on the **Plugins** screen.
3. Go to **Settings → Mediamonster** and paste your key. The page says which account the key belongs to once it works.

The key stays on your WordPress server. The editor talks to the plugin, and the plugin talks to Mediamonster.

## Place an image

1. Add the **Mediamonster image** block.
2. Search by file name, or scroll. **Load more** pages through the Vault.
3. Click an image.

If the file's CDN link is off, the plugin asks Mediamonster to turn it on. That only works when **Let API keys publish CDN links** is on in [Settings](https://docs.mediamonster.app/integrations/overview.md#let-api-keys-publish-cdn-links). Otherwise the block says so, and you can turn the file's CDN link on in the Vault and pick it again.

## What the page gets

The block is drawn on your server each time the page is built:

* `src` is the image at up to 1024 pixels wide
* `srcset` lists every size the CDN renders up to the file's own width, as WebP
* `alt` is the file's alt text from the Vault. Change it in the block's sidebar for this post
* `width` and `height` are the file's own, so the page doesn't jump as it loads

**Sizes** in the sidebar tells the browser how wide the image is shown. Leave it empty for the default.

Use the `mediamonster_image_format` filter to serve `jpg` or `png` instead of WebP.

## Share links

Paste a share link on a line of its own and it embeds. See [Share links embed](https://docs.mediamonster.app/integrations/overview.md#share-links-embed).

## If you turn a CDN link off

The image stops loading everywhere it is placed. Turn it back on and it comes back at the same address.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.