• Resolved conca.daniele

    (@concadaniele)


    hi,
    don’t know if already issued, but in
    function music_press_pro_get_list_song_audio_by_ID

    is necessary to add something like

    if (get_field('song_audio_link',$songID)) {
         $file = get_field('song_audio_link',$songID);
    }

    to have this kind of songs listed. maybe this kind of fix should be applied elsewhere or for other media type, like video for example…

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter conca.daniele

    (@concadaniele)

    or maybe something like this

    if (get_field('song_audio',$songID)) {
                        $file = get_field('song_audio',$songID);
                    } else if (get_field('song_embed_audio',$songID)) {
                        $file = get_field('song_embed_audio',$songID);
                    } else if (get_field('song_audio_cover',$songID)) {
                        $file = get_field('song_audio_cover',$songID);
                    } else if (get_field('song_audio_link',$songID)) {
                        $file = get_field('song_audio_link',$songID);
                    }
    Plugin Author tuyennv

    (@tuyennv)

    Hello Friend,

    Thanks for your comment,

    This function music_press_pro_get_list_song_audio_by_ID not get value of single songID.

    It will get songs from multi songID. You can see full code in music-press-template-functions.php

    Thanks & Best Regards!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Band or Artist “All” Songs empty list’ is closed to new replies.