Try using PHP’s string concatenation:
<?php echo do_shortcode('');?>
or:
<?php
$enclosure = get_post_meta($post->ID, "https://wordpress.stackexchange.com/questions/212077/enclosure", true);
echo do_shortcode(''. $enclosure . '';
?>
Related Posts:
- Audio player shortcode not showing up when using variable
- explode array within shortcode
- Change behavior of “Insert into Post” based on attachment metadata
- Add new “Insert Into Post” button with another function
- 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
- 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
- modify wordpress caption shortcode
- How to create a shortcode to print specific values stored in a post meta array?
- 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
- Display MP3 as media using an URL from a custom field
- Using a custom field inside a shortocde
- Adding simple (one button) Audio player using Custom Fields?
- 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
- Shortcode for Custom Field of Media Attachment (to use with Featured Images)
- 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?
- Retrieving Advanced Custom Field within Shortcode Function [closed]
- Using ACF Custom Field value in a URL with do_shortcode() [closed]
- 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
- 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
- How to enable revisions for post meta data?
- Any way to add custom options to Gallery Settings?
- How to display all custom fields associated with a post?
- Enabling shortcodes for custom fields
- passing argument to get_template_part() or a better way to code
- ACF – get_field() using ‘option’ as post_id not working
- can you set a default value to a custom field
- Order by custom field date with ASC order
- Determine when a custom field was last updated?
- Can you ungroup Custom Fields?
- making sense of admin-ajax
- MySQL query to set wp_postmeta using term_taxonomy_id value
- Insert attachment ID in custom field from media uploader
- Custom Meta Box not Saving in Posts with Gutenberg Editor
- Update Custom post field by Ajax on cached site
- Bulk remove post meta
- How to create html block to display extra information on woocommerce single product page
- How to Display pages with a Custom Fields in one page
- WordPress Rest API to call page data associate with custom meta
- Unsaved changes in metabox inputs not detected in the block editor
- Declaring in variables [closed]
- Saving Custom Field Data before Publish
- Inserting data into MagicFields using mysql queries
- Custom Field box history
- Check & remove special characters in a field?
- Google map that plot’s several markers – each one with custom data
- Why am I getting a “Call to member function format() on a non-object” error?
- How To Show Get Adjacent Posts If Posts Are Sorted By Custom Field
- How to calculate custom field value (average)
- Modify custom field from front end
- How to get all custom fields with some prefix in key?
- How to Convert Custom Fields from Text to Array?
- Use update_post_meta to older posts
- update_post_meta
- update_post_meta not working well
- Best way to insert a list of links into a post outside of the_content
- WP meta_query args not working in function
- Line break description wordpress
- Update custom field on the fly
- Custom field disappeared from screen options
- Contact Form 7 List Building
- ACF – Compare user and post data
- Advanced Custom Fields deleting some code and adding code for a slider
- How to format the various types of custom fields?
- Get first URL from custom field, download and set as featured image on post publish
- Query postmeta values, and return multiple post_titles for common meta value
- How can I put a custom field as the link of a button shortcode?
- sort a custom field base on the date or anything
- Add image custom attribute [closed]
- Foreach giving one too many list items, how can I remove the last empty line?
- I used a custom field for header image and can’t get it to show up on posts