Creating a custom post type with an audio playing field

Support MB Custom Post Type Creating a custom post type with an audio playing fieldResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27947
    buxroll@gmail.com[email protected]
    Participant

    I want to create a CPT in which I will need three custom fields, one for a title, one for an image, and one for an audio file
    and in the front end, I want that audio file to be playable like I can click to play the sound file or stop it

    #27951
    Long NguyenLong Nguyen
    Moderator

    Hi Buxroll,

    Thank you for reaching out.

    If this is the first time you use Meta Box, I recommend following the documentation to know how to create custom fields and display their value on the frontend. You also should have a basic knowledge of PHP, HTML, CSS code to use full features of Meta Box.
    https://docs.metabox.io/creating-meta-boxes/

    For the audio file upload, you can warp the field value in the <audio> tag. See more here https://www.w3schools.com/tags/tag_audio.asp

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