Displaing audio attachment from the custom field
-
Hi! I have a custom field to make an attachment of mp3 file. I display it in my php code like this:
<?php
if ( get_post_meta( get_the_ID(), ‘advanced_options_audio’, true) ) {
echo ‘<audio controls=”controls”>
<source src=”‘ . get_post_meta( get_the_ID(), ‘advanced_options_audio’, true ) . ‘” />
</audio>’;
}
?>In this case plugin is not working, ands the default player is displaing.
How i can fix this?
Thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Displaing audio attachment from the custom field’ is closed to new replies.