The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Showing Audio Files in WordPress

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #200639

    Hi, I would like to replicate what Chris Coyier does on the sponsor page, where audio files are being showed. I created a custom post type, and I can add the audio file, but when I view the post type, the audio file doesn’t show.

    Ilan Firsov

    Custom post type by itself can not do what you want. It’s just another way to organize content on your website.
    For the post type to do something extra your theme must include a page template targeting the specific post type with an extra piece of code which loads a media player to the page (with the target audio file either from a url in the content of the post or a custom field).

    But the most simple way to manage this is to use a media player plugin (this one for example).
    The plugin already includes the “custom media player code” you need to the page and allows you to add the media player via a simple shortcode in any post you want.
    You can still use the custom post type for organization, but all you have to do is add the shortcode in the content of the post.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.