Support » Plugin: ACF-VC Integrator » Displaying mp3 files.

  • Resolved maartenrietdijk

    (@maartenrietdijk)


    Is it possible to show a player for audio/video when uploading something in the file field? Right now I can only show the link or title which links to the file.

    PS : Keep up the good work!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Frederik Rosendahl-Kaa

    (@frederik-rosendahl-kaa)

    Hi @maartenrietdijk,

    Sorry for the late reply.

    It should be possible but it will require some code to make it work.
    I have created some filter hooks that allow you to change the output that the plugin makes. add_filter (acfvc_file ‘,’ function_name ‘, 10.4);

    And with that hook you can then use some html5 to insert an audio player see eg. this link https://www.w3schools.com/html/html5_audio.asp

    add_filter('acfvc_file','function_name',10,4);
    function function_name( $output, $field, $link_text, $post_id ) {
    
        return $output;
    }
    Plugin Author Frederik Rosendahl-Kaa

    (@frederik-rosendahl-kaa)

    Hi @maartenrietdijk,
    I have now implanted so it is possible to view files as an audio/video player.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.