Retrieve and Display Id3 audio information in posts


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');
9jaHob Media 2 months 0 Answers 10 views 0

Leave an answer