display file name, not title. (3 posts)

  1. 3rdaxis
    Posted 2 years ago #

    Is there a way to display the file name rather than the title of a MP3?

    Im trying to do this with the automatic playlist within the MP3J-ui widget. Since there are many authors posting their own works, adding captions is an extra step that needs to be avoided.



  2. 3rdaxis
    Posted 2 years ago #

    after doing many searches i found that nobody has really come up with a solution to this. I went into wp-admin/includes/media.php and found these lines.

    if ( ! empty( $meta['title'] ) )
    $title = $meta['title'];

    I then did this.

    //if ( ! empty( $meta['title'] ) )
    //	$title = $meta['title'];
    if ( ! empty( $meta['file'] ) )
    $file = $file['file'];

    Works perfect.

    So now i can have "artist name - artist song.mp3 display.

  3. 3rdaxis
    Posted 2 years ago #

    If somebody can shed some light on how to accomplish this outside of editing a core script that would be helpful.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic