> This is a page from the ElevenLabs documentation. For a complete page index, fetch https://elevenlabs.io/docs/llms.txt. For the full documentation in a single file, fetch https://elevenlabs.io/docs/llms-full.txt.

# 在 WordPress 中使用 Audio Native

> **Info**
>
> 继续阅读本指南前，请先按照 [Audio Native 概览](/docs/zh/eleven-creative/audio-tools/audio-native)中的步骤开始使用 Audio Native。

#### 安装 WPCode 插件

在 WordPress 网站中安装 [WPCode 插件](https://wpcode.com/)，以嵌入 HTML 代码。

#### 创建新的代码片段

在 WordPress 管理控制台中，点击“Code Snippets”。将 Audio Native 嵌入代码添加到新代码片段中。

**`嵌入代码片段`**

```html title="嵌入代码片段"
    <div
        id="elevenlabs-audionative-widget"
        data-height="90"
        data-width="100%"
        data-frameborder="no"
        data-scrolling="no"
        data-publicuserid="public-user-id"
        data-playerurl="https://elevenlabs.io/player/index.html"
        data-projectid="project-id"
    >
        Loading the <a href="https://elevenlabs.io/text-to-speech" target="_blank" rel="noopener">Elevenlabs Text to Speech</a> AudioNative Player...
    </div>
    <script src="https://elevenlabs.io/player/audioNativeHelper.js" type="text/javascript"></script>
```

![Audio Native](/docs/_fern-img/ce6368db32162ddccd68639525a54eeb477eacf3ecd64f9fac559f7a4bac1e01.webp)

插入方式选择“Auto Insert”，并将位置设为“Insert Before Content”。

![Audio Native](/docs/_fern-img/301598cd60b04b9df9465b057eeb955518b94dfbf676c9cbfee194fe6653fa90.webp)

#### 发布更改

最后，发布更改并前往博客文章的线上版本。你会看到一条提示，告知 Audio Native 项目正在创建。几分钟后，博客文本将转换为音频文章，嵌入式音频播放器也会显示出来。

![Audio Native](/docs/_fern-img/d28e7eb952db6f03f5c1007f43eea0dcda3dc5413d98ab2a3aa5610d242ed8b8.webp)