You have to echo the full Audio Tag and insert the custom field MP3 address in it.
<?php
if ( get_post_meta($post->ID, 'ses', true) ) {
echo '<audio controls="controls">
<source src="' . get_post_meta($post->ID, 'ses', true) . '" />
</audio>';
}
?>
Related Posts:
- modify wordpress caption shortcode
- Shortcode for Custom Field of Media Attachment (to use with Featured Images)
- explode array within shortcode
- Change behavior of “Insert into Post” based on attachment metadata
- Add new “Insert Into Post” button with another function
- Call a custom field in an audio shortcode?
- Custom bulk action for media gallery items
- wp_editor in add_meta_boxes does not show gallery
- Custom field for default gallery
- Execute/Parse Shortcode in Native WordPress Custom Field Value Field
- Audio player shortcode not showing up when using variable
- Create WordPress shortcode with php code inside
- Display WP-Types custom fields in post [closed]
- Should custom meta boxes be able to output shortcodes the same as WordPress’ native post editor?
- Shortcode To Display Post Custom Field Value Inside Excerpt
- How to create a shortcode to print specific values stored in a post meta array?
- Custom dropdown field added to media gallery; how to get it to save properly?
- Insert a custom field into a shortcode and use it in post(s)
- Custom wysiwyg editor doesn’t execute shortcodes?
- Custom Field 101
- shortcode in a custom metabox
- Can data from a Custom Field data be used by a shortcode on a per page/post basis?
- Shortcode To Display Post Custom Field Value in Post Title, Post Content
- custom field (video/audio url) and embed functionality
- IF Custom field value equals ZERO
- WordPress Media Uploader custom Javascript not working
- Using a custom field inside a shortocde
- Enable a short code in the custom meta field
- do_shortcode close
- Plugin or shortcode for ISBN number?
- How to pass custom field value to shortcode?
- Replacing custom field with shortcode
- how can i show WordPress custom field data to my short code?
- Search fails when using the radio buttons
- Create Shortcode shows only posts with custom_field meta
- Output Custom Field value to shortcode
- PHP and Shortcode Combination
- Stop truncation of shortcodes in custom text fields?
- display custom media folders to wordpress media popup
- Retrieving Advanced Custom Field within Shortcode Function [closed]
- Using ACF Custom Field value in a URL with do_shortcode() [closed]
- Media Attachment Custom Meta Fields not saving in Media Uploader when using jQuery UI Autocomplete
- Running a Gallery Shortcode in a Custom Fields Widget
- Custom field in a shortcode?
- Display meta data from a custom field within plugin Category Grid View Gallery
- Insert wp gallery shortcode into custom textarea
- Displaying shortcode content inside custom field without images
- Parse Shortcodes in Theme’s Custom Field?
- Insert shortcode before and after a list automatically
- How can I attach files without using a plugin?
- Media Custom Fields – get a value with PHP
- Retrieving custom field as shortcode
- Custom fields doesnt work well with any postTAB plugin
- How to include custom field in shortcode (do_shortcode) in theme file
- Shortcode not picking up custom field
- Save Custom Meta Value on Media Upload
- Problem with serialized arrays in custom meta
- WP doesn’t show Array Custom Fields?
- How do I search an array stored in a custom-field using WP_Query?
- How to save custom fields for attachments
- How to get a meta value from all post
- Adding existing user custom field value to a woocommerce product [closed]
- Exclude custom post type from search by custom field value?
- add meta box using function.php
- Add custom setting that uses radio button to WP Gallery
- wp_query add arguments using array_push if variable met
- Add Paypal Button programmatically
- How do I use wp_query for WordPress search?
- Nav Menu – Add class based on meta keys
- Eliminating the appearance of a specific custom field in a post
- Conditionally hide or show woocommerce product variation in fontend by custom field
- Accessing loop functions (e.g the_title or the_content) from post ID
- custom avatar removal
- Efficiently sort only certain categories by custom field
- How can I do a variable for meta_query?
- Singleton Custom Field (Meta Box)
- Display custom field & value correctly on page
- Displaying custom filed content instead of post content
- How to use pre_get_posts to alter posts_per_page of category pages, where ‘posts_per_page’ will be dynamic
- How to print the Custom fields values [closed]
- How to validation for sanitize_URL?
- How can I output the custom fields wrapping with HTML
- How to get custom image field of specific post id
- wp_get_attachment_image_src() with advanced custom fields returning empty
- How to update custom field of a posts in a particular category
- Woocommerce products search with custom fields
- Convert author metadata to a custom field
- Custom pages or Custom Posts
- get_avatar filter is not working as per requirement
- Saving Custom Field that includes Quotation marks
- WordPress Admin – Automatically Sort Custom Posts by Custom Field Date Value in d-m-Y Fomat
- how to execute custom field for structured data?
- select user with all meta field and field value. I am use Below Query for this ,So any of know another way to fast query instead of below query?
- meta_query ‘compare’ => ‘!=’ not working
- Why WordPress takes time to make request to save post?
- Show comon custom field results?
- Display Child Page with custom fields within Parent Page
- Pagination not displaying correct number of pages
- Show div based on custom meta value
- Show/Hide Featured Image or replace it with custom field [closed]