這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Woo Track list and Sample Player

描述

Adds the track list for an album on the WooCommerce products page to the short description.
It will also attempt to discover a sample version of the track and display an audio player for the sample. If no sample is found then just the track title is displayed.

Usage

Once the plugin is activated then the short descriptions of your album products will be updated with the list of tracks.
If you wish to display an audio player that will play a sample of the track, then upload a sample track with the name of the track prefixed with ‘sample-‘. For example if you have a file named ‘WooHoo.mp3’ then create and upload a file call ‘sample-WooHoo.mp3’ in the Media Library.
Creating the samples is not possible with this plugin. I recommend the use of Sound eXchange (SoX) at http://sox.sourceforge.net/
On Linux I use the script

for i in *.mp3 ;
do sox “$i” “sample-basename "$i"” trim 10 30 fade h 1 0 1 ;
done

to convert a whole folders worth of mp3 files to sample files (run the script from the folder). In this example the sample will start 10 seconds into the track, play for 30 seconds, and will fade in and out for 1 second.
The SoX download contains a similar example for Windows.
SoX has a multitude of options and I suggest reading the documentation to get the most out of it.

If you sell both hard copies and virtual versions of your albums, then the track list and sample audio player can be added to the short description of the hard copy provided you follow the naming convention. If your album is ‘The best of WooHoo’ then create products titled ‘The best of WooHoo – Digital Download’ and ‘The best of WooHoo – CD Hardcopy’.

These file naming conventions can be changed by editing the global variables at the top of woo-tlasp.php. There is no options screen.

The audio file sample icon style can be changed by modifying css file css/woo-tlasp.css or overriding the styles in your theme stylesheet.

螢幕截圖

  • Album product with track list and sample player

安裝

  1. Upload the plugin to your WordPress installation
  2. Activate the plugin through the “Plugins” menu in WordPress.

常見問題

None

評價

2019年3月3日
This does exactly what it is supposed to do -find the sample music files and display them for the user to play. The larger files will still be downloaded. Love it. Not a bloated application for once! Thank You! Cathy
閱讀全部1個評價

貢獻者及開發者

“Woo Track list and Sample Player” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

修改日誌

1.0.2 Fixed display problem with play/pause button
1.0.1 Fixed school boy error ‘wp_enqueue_style was called incorrectly’. Thanks to @mikeill and @learning22