wp_get_attachment_url() is showing albumart of an mp3 file
-
I passed an mp3 file’s id through url that is uploaded from “add media” button of post.
Then I am trying to use bellow code to get mp3 file’s url$mp3direct = wp_get_attachment_url( $_GET["id"] ); echo $mp3direct;
But it return cover image of the mp3 file.
ex:
For example.com/download.php?id=5 it output https://example.com/wp-content/uploads/2014/12/aura_-mp3-image.png but I want output https://example.com/wp-content/uploads/2014/12/aura_.mp3
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘wp_get_attachment_url() is showing albumart of an mp3 file’ is closed to new replies.