Custom Fields
Re-Envisioned
Support MB Custom Post Type Creating a custom post type with an audio playing field

  • Creator
    Topic
  • #27947
    buxroll@gmail.com
    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

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #27951
    Long 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 1 replies (of 1 total)
  • You must be logged in to reply to this topic.