By default, WordPress don’t run shortcodes which you put into a custom field. But, by using this snippet, you will be able to add shortcode to a WordPress custom field. Simply add the following snippet and you will be able to execute shortcode from custom field.
1 | <?php echo apply_filters('the_content', get_post_meta($post->ID, 'your_custom_field_here', true)); ?> |
Snippet Source/Credit: Leeboyce