How to execute shortcodes inside custom fields

Just put this code into whatever page you are displaying the results of the shortcode, and change the your_custom_field_here to the name of your custom field.

<?php echo apply_filters('the_content', get_post_meta($post->ID, 'your_custom_field_here', true)); ?>

Credit: Snipplr.

Leave a Reply

Your email address will not be published. Required fields are marked *