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 8 months 2020-11-27T15:10:21-05:00 0 Answers 10 views 0

Leave an answer

Browse
Browse