Title: SoundCloud Shortcode
Author: indextwo
Published: <strong>2009 年 7 月 10 日</strong>
Last modified: 2024 年 3 月 28 日

---

搜索插件

![](https://ps.w.org/soundcloud-shortcode/assets/banner-772x250.png?rev=2908163)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/soundcloud-shortcode/assets/icon-256x256.png?rev=2908163)

# SoundCloud Shortcode

 作者：[indextwo](https://profiles.wordpress.org/indextwo/)

[下载](https://downloads.wordpress.org/plugin/soundcloud-shortcode.4.0.3.zip)

 * [详情](https://cn.wordpress.org/plugins/soundcloud-shortcode/#description)
 * [评价](https://cn.wordpress.org/plugins/soundcloud-shortcode/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/soundcloud-shortcode/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/soundcloud-shortcode/#developers)

 [支持](https://wordpress.org/support/plugin/soundcloud-shortcode/)

## 描述

This plugin converts all SoundCloud shortcodes into embeddable SoundCloud players.
It works for any SoundCloud track, playlist, user, or group. Once you install this
plugin, it will work for any of your WordPress posts & pages. I mean, _sure_ you
could use oEmbed or the snappy new Gutenberg editor to simply paste in a SoundCloud
URL; but we like to keep things _old-school_ 😎

A simple example:

    ```
    [soundcloud]http://soundcloud.com/forss/flickermood[/soundcloud]
    ```

**More Options**

SoundCloud Shortcodes support these optional parameters:

 * `width`
 * `height`
 * `params`

The `params` parameter passes additional options to the SoundCloud embeddable player.
You can find a full list on the SoundCloud Developers pages: https://developers.
soundcloud.com/docs/api/html5-widget

An example of a track that starts playing automatically, with hot-pink controls:

    ```
    [soundcloud params="auto_play=true&color=#F368E0"]http://soundcloud.com/forss/flickermood[/soundcloud]
    ```

## 安装

 1. Upload `soundcloud-shortcode` to your plugins directory or install it from the 
    WordPress Plugin Repository
 2. 通过WordPress的“插件”菜单激活插件

## 评价

![](https://secure.gravatar.com/avatar/d18f688ef0da134ae3057794876df48cc7bbe2ac8fd33e2954be88a3cb3a0f77?
s=60&d=retro&r=g)

### 󠀁[Garbage](https://wordpress.org/support/topic/garbage-157/)󠁿

 [maxlefou](https://profiles.wordpress.org/maxlefou/) 2022 年 11 月 9 日

No updates for 9 years, no support for PHP 8. Delete this.

![](https://secure.gravatar.com/avatar/ead9cca777632094038f9647ad6e1be49f600a0918c4d249bcd90096ac02183a?
s=60&d=retro&r=g)

### 󠀁[Excellent](https://wordpress.org/support/topic/excellent-5741/)󠁿

 [ciarabuck900](https://profiles.wordpress.org/ciarabuck900/) 2017 年 12 月 27 日

thnks alot

![](https://secure.gravatar.com/avatar/8f1285ce30e2fcc88d9832b7465c6ea1bba869892688ed1ef4b95dc6053d3bbb?
s=60&d=retro&r=g)

### 󠀁[It works](https://wordpress.org/support/topic/it-works-862/)󠁿

 [W2S](https://profiles.wordpress.org/w2s/) 2016 年 9 月 3 日

with WP 4

![](https://secure.gravatar.com/avatar/6422358d499f34a3cf3020b1e53f5d1cc5f461999f722d7d91a4e1c4ce425c64?
s=60&d=retro&r=g)

### 󠀁[does not work anymore!](https://wordpress.org/support/topic/does-not-work-anymore-10/)󠁿

 [brizkalla](https://profiles.wordpress.org/brizkalla/) 2016 年 9 月 3 日

was working great but now does not work with wordpress 4.3.1 PLEASE FIX ASAP! would
also be good if we had more formatting/playlist options

![](https://secure.gravatar.com/avatar/f9442a11804a651cfcf238c281c3b0e55e97d6f436d9c162b7ba80dba42073c1?
s=60&d=retro&r=g)

### 󠀁[good](https://wordpress.org/support/topic/good-2180/)󠁿

 [Digital Syndrome](https://profiles.wordpress.org/outgoingroast/) 2017 年 2 月 
7 日

good

![](https://secure.gravatar.com/avatar/b34cb48cce85d46f27758f98d9d37e0690bd84717f3a796ff1231f9c69809227?
s=60&d=retro&r=g)

### 󠀁[works](https://wordpress.org/support/topic/works-1170/)󠁿

 [shadschatter](https://profiles.wordpress.org/shadschatter/) 2017 年 2 月 7 日

good

 [ 阅读所有23条评价 ](https://wordpress.org/support/plugin/soundcloud-shortcode/reviews/)

## 贡献者及开发者

「SoundCloud Shortcode」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ indextwo ](https://profiles.wordpress.org/indextwo/)
 *   [ theophani ](https://profiles.wordpress.org/theophani/)
 *   [ jowagener ](https://profiles.wordpress.org/jowagener/)
 *   [ por_ ](https://profiles.wordpress.org/por_/)

[帮助将「SoundCloud Shortcode」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/soundcloud-shortcode)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/soundcloud-shortcode/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/soundcloud-shortcode/)，或通过[RSS](https://plugins.trac.wordpress.org/log/soundcloud-shortcode/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/soundcloud-shortcode/)。

## 更新日志

#### 4.0.3

 * Caught undefined indexes that might show up when `WP_DEBUG = true`; or environment’s`
   error_reporting` was set to show warnings and/or notices.

#### 4.0.2

 * Updated sanitization of potential inputs from both admin and directly within 
   shortcode
 * Minor coding-standards tweaks and normalization
 * Updated `Supports` version

#### 4.0.1

 * Bumped minor version number, removing `trunk` as it’s no longer supported
 * Added `Requires PHP` version
 * Updated some option descriptions
 * Updated `Update URI`

#### 4.0.0

 * Hefty sanitization overhaul to address vulnerability raised in CVE-2023-34018
 * Major refactor of code, including removing Flash widget option & addressing miscellaneous
   bugs
 * Removed outdated tests
 * Added several new default options to reflect available SoundCloud widget parameters
 * Updated language on settings page to make options clearer
 * Redesigned settings page, now with a shiny new logo

#### 3.1.0

 * Update ternary operator to be compatible with PHP8
 * Added `soundcloud_shortcode_options` filter
 * Update readme to reflect SoundCloud docs & API options
 * Added icons & banners

#### 3.0.2

 * Always load embeds over https

#### 3.0.1

 * Minor copy updates in readme.txt

#### 3.0.0

 * Make visual player the default player (option to disable in settings)

#### 2.3.2

 * Add developer documentation
 * Update README

#### 2.3.1

 * Add support for permalinks in HTML5 shortcode

#### 2.3.0

 * Don’t use oEmbed anymore because of various bugs.
 * Standard http://soundcloud.com/ permalinks will always return the flash widget.
   Use the widget generator on the website to get an API url.

#### 2.2.0

 * Improved default options support

#### 2.1.0

 * Integrate oEmbed

#### 2.0.0

 * HTML5 Player added as the default player, with Flash as an option and fallback
   for legacy URL formats.

#### 1.2.1

 * Removed Flash fallback HTML

#### 1.2.0

 * Added options page to allow blog-wide global default settings.

#### 1.1.9

 * Fix to support resources from api.soundcloud.com
 * Security enhancement. Only support players from player.soundcloud.com, player.
   sandbox-soundcloud.com and player.staging-soundcloud.com

#### 1.1.8

 * Bugfix to use correct SoundCloud player host

#### 1.0

 * First version

## 额外信息

 *  版本 **4.0.3**
 *  最后更新：**2 年前**
 *  活跃安装数量 **5,000+**
 *  WordPress 版本 ** 3.1.0 或更高版本 **
 *  已测试的最高版本为 **6.4.8**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/soundcloud-shortcode/)
 * 标签
 * [shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)[soundcloud](https://cn.wordpress.org/plugins/tags/soundcloud/)
 *  [高级视图](https://cn.wordpress.org/plugins/soundcloud-shortcode/advanced/)

## 评级

 4.5 星（最高 5 星）。

 *  [  17 条 5 星评价     ](https://wordpress.org/support/plugin/soundcloud-shortcode/reviews/?filter=5)
 *  [  2 条 4 星评价     ](https://wordpress.org/support/plugin/soundcloud-shortcode/reviews/?filter=4)
 *  [  3 条 3 星评价     ](https://wordpress.org/support/plugin/soundcloud-shortcode/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/soundcloud-shortcode/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/soundcloud-shortcode/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/soundcloud-shortcode/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/soundcloud-shortcode/reviews/)

## 贡献者

 *   [ indextwo ](https://profiles.wordpress.org/indextwo/)
 *   [ theophani ](https://profiles.wordpress.org/theophani/)
 *   [ jowagener ](https://profiles.wordpress.org/jowagener/)
 *   [ por_ ](https://profiles.wordpress.org/por_/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/soundcloud-shortcode/)