Music Tags

So, some people asked me for the code that I use for music entries in wordpress.

I’ll admit right away that this is pretty much just a bad hack. Of course, i feel the same way about a lot of stuff associated with WordPress, but i digress.

Just drop the music_tags.php file in your plugins folder, then activate it via your WP Admin Panel. The configuration settings for it are modifiable via the plugin editor, just scroll down to where you see the ‘define’ lines, you can edit the format and delimiters.

To enable, you need edit your wordpress theme: you’ll need to put the following code inside “The Loop”

I put mine in the “Main Template” and “Post Template” just below the lines that contain:

To add an entry, when you write a post, simply create a new custom field with the key ‘music’ (lowercase), and for value, give the following:

ALBUM^^ARTIST - SONGNAME^^LYRICS

Album and lyrics are optional, but you are still required to put in the ^^’s. You can change the delimeter to something other than ^^ in the define settings via the plugin editor