You can find many music player plug-ins online using WordPress. Today we will take a look at how to use the NetEase Cloud Music plug-in for WordPress
WordPress Plug-in NetEase Cloud Music:
Plug-in introduction:
Supports private playlist pages and externally linked songs on article pages.
Singles can display popular NetEase comments.
Customized playlist function, you can directly enter the album address to create your own playlist.
Songlist call:
Because the cache time is long, if you update the playlist, please clear the cache manually in the plug-in background.
Insert music into the article
Just insert the NetEase Cloud music address directly into the article. Singles, albums, playlists and radio stations are supported. Radio stations are not supported at the moment. Collection. Note that the address must be on a separate line.
Insert single
http://music.163.com/#/song?id=26270008
Insert album
http://music.163.com/#/album?id=2440003
Insert song list
http://music.163.com/#/playlist?id=135451308
Insert radio station
http://music.163.com/#/program?id=16299155
Configuration method
Download the compressed package and upload it or directly search for netease music in the background to install it
Backstage> Settings> NetEase Cloud Music Settings, enter the plug-in setting page
Fill in your account ID, and you can set the number of pages displayed, the number of rows per page, and the album width according to your theme.
Please set the music cache time according to your needs. If the lyrics display is turned on, you can set a longer cache time and load the cache yourself in advance to save visitors from waiting for a long time.
When you need to forcefully refresh the column or the song is invalid, you can click the Clear Cache button.
If you enable memory caching, you need to configure memcached or redis on the server
There are three ways to call the plug-in:
1. Create a new page: text box Enter [nm]
2. Create a new template and add to the required location
3. Directly select the page you want to use in the background
Plug-in problem:
The cover can be displayed, but the music cannot be played
Check whether wp_head() and wp_footer() function
Update settings are invalid
It is recommended to clear the plug-in cache after updating settings
Some individual themes may have js conflicts.
For more wordpress related technical articles, please visit the wordpress tutorial column to learn!
The above is the detailed content of How to use wordpress music plug-in. For more information, please follow other related articles on the PHP Chinese website!