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
- get_the_ID() retrieves same ID on Gutenberg’s Query Loop
- search based on custom field
- Why isn’t update_post_meta saving?
- Adding Facebook’s image and meta description retrieval capabilities to a WordPress post
- WP meta_query args not working in function
- Is it possible to add Term Meta Fields to a WooCommerce Attribute?
- How do i call up default post title in custom posts
- Filtering posts by ACF meta query
- trying to add extra field using hooks
- How to pass multiple custom fields as shortcode’s parameters
- Can’t set custom meta fields for a post
- Saving Custom Field that includes Quotation marks
- WordPress Admin – Automatically Sort Custom Posts by Custom Field Date Value in d-m-Y Fomat
- Very large list of options for BuddyPress profile fields
- How do I display an article using a WordPress custom field?
- Custom Fields not working properly
- Delete a custom field in mysql for all posts with specific category id
- Custom user registration fields in user_register hook
- Weird custom fields data lost
- Unable to change checkout placeholder text
- Store comment form custom field in custom database
- update a custom field with the value of another existing custom field
- How to I change the value of a custom field on the home page?
- Line break description wordpress
- Allow HTML in Custom Metabox area
- Custom Fields Not Showing (ACF not installed)
- Custom Field URL + description
- Why does my numeric meta query work only on one meta key and not the other?
- Show Custom field value instead of title in WP Menu
- How to save multiple custom user profile fields using repeater JQuery
- Query to sort a list by meta key first (if it exists), and show remaining posts without meta key ordered by title
- How to make menu country specific?
- SQL query to change the value of a Custom Field
- Hiding Dropdown Fields
- Is there a way to determine which user changed a custom field (and when)?
- how to execute custom field for structured data?
- use custom field value as featured image
- Metabox/Custom fields are not saving input data
- adding autosave feature to custom fields
- meta_query to check all custom fields
- Custom meta POST request fired twice when updating a post in Gutenberg
- add different custom fields value to post class if permalink or index
- add meta box considers the selected option as post parent
- Can you generate a featured image from two images from custom fields?