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

Mixcloud Embed

描述

The Mixcloud Embed plugin allows you to add the Mixcloud player into your WordPress blog or page, by using the [mixcloud] shortcode.
You can also display a playlist of the cloudcast.
In the last version there is the possibility to use a widget on your sidebar for view your Mixcloud profile.

Usage

As default you only need to copy the URL of the song from Mixcloud you wish to add into your WordPress post or page, and past it between [mixcloud] and [/mixcloud]

[mixcloud]http://www.mixcloud.com/artist-name/long-live-set-name/[/mixcloud]

Make sure it’s the permalink (…com/artist-name/dj-set-or-live-name/) instead of “…com/domenicobiancardi/“.

The optional parameters are height and width:

[mixcloud height="100" width="400"]http://www.mixcloud.com/artist-name/recorded-live-somewhere/[/mixcloud]

If you want display a cloudcast profile you must add the parameter profile with value true

[mixcloud profile="true"]http://www.mixcloud.com/BJT/[/mixcloud]

If you want embed an entire playlist you must add the url of the playlist:

[mixcloud]http://www.mixcloud.com/BJT/playlists/bjt-djset/[/mixcloud]

This shortcode display a cloudcast profile BJT.

Parameters

This version accepts the following parameters:

  • Height: integer value
  • Width: integer value
  • Iframe: boolean value
  • Playlist: boolean value
  • Profile: boolean value

Examples

[mixcloud]https://www.mixcloud.com/dottblanchard/dott-blanchard-discovering-music/[/mixcloud]

[mixcloud height="100" width="400"]https://www.mixcloud.com/dottblanchard/dott-blanchard-discovering-music/[/mixcloud]

[mixcloud iframe="true"]https://www.mixcloud.com/dottblanchard/dott-blanchard-discovering-music/[/mixcloud]

[mixcloud iframe="false"]https://www.mixcloud.com/dottblanchard/dott-blanchard-discovering-music/[/mixcloud]

[mixcloud]http://www.mixcloud.com/BJT/playlists/bjt-djset/[/mixcloud]

[mixcloud profile="true"]http://www.mixcloud.com/dottblanchard/[/mixcloud]

屏幕截图

  • Mixcloud player on a post.

安装

This section describes how to install the plugin and get it working.

  1. Download mixcloud-embed.zip and unzip it.
  2. Upload the folder ‘mixcloud-shortcode’ to the /wp-content/plugins/ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Place [mixcloud]link goes here[/mixcloud] in your post or page

常见问题

The Mixcloud Embed plugin allows you to embed the Mixcloud player to your WordPress blog or page.

评价

2020 年 9 月 1 日
Completely and fatally breaks WP 5.2. AVOID!
2016 年 9 月 3 日
Throws the following notice upon install: Notice: The called constructor method for WP_Widget in MixcloudEmbedWidget is deprecated since version 4.3.0! Use __construct() instead. in /Users/evanbyrne/sites/ftd/wp-includes/functions.php on line 3718
阅读所有10条评价

贡献者及开发者

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

贡献者

帮助将「Mixcloud Embed」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

2.2.0

  • Manage the code copy&paste from mixcloud

2.1.0

  • Manage a AHREF at the cloudcast url

2.0.2

  • Fixed a problem with the variabile default of player

2.0.1

  • Fixed an error when I save a default options of player

2.0.0

  • Update the new version of share code
  • Remove the retrieve playlist because the iframe object retrive also

1.7.2

  • Error a current version

1.7.1

  • Fix a new Author and relative website dedicate to a plugin

1.7

  • Update a plugin with a new embed code from Mixcloud.com
  • Add a new options light, cover, artwork, playlist

1.6.3

  • Fix a bug that closed a <?php tag to the end of the file.

1.6.2

  • Fix a reported bug “Warning: Illegal string offset after updating server to latest PHP 5.4”

1.6.1

  • Fix a reported bug “Doesn’t escape ampersands and breaks XML (RSS)”

1.6

  • Fix some bug and add the button to tinymce

1.5.1

  • Fix a bug with a urlencode of the movie

1.5

  • No changes for the users, but I have do a refactor for the all plugin

1.4.2

  • Fixed an idiot bug

1.4.1

  • Added the possibility to embed an entire playlist.

1.4

  • The cloudcast profile was trasformed in a widget for a widget bar

1.3

  • View a cloudcast profile information

1.2.1

  • Fix bug on the logic of enabled/disabled parameters

1.2

  • Added the function to retrieve a playlist

1.1

  • Setting a default value from admin menu

1.0.2

  • Fix a readme text

1.0

  • First version