Retrieve and Display Id3 audio information in posts

Question

I have an music website so am trying to retrieve the Id3 information (artist of the song) in audios and display it on the title.

I tried the code below but it didn’t work

function artist () {
$artist = wp_read_audio_metadata( $attachment->ID );
return $artist;
}
add_filter ('wp_title', 'artist');
0
9jaHob Media 2 months 0 Answers 10 views 0

Leave an answer