How to use Shortcode in a Custom Field (1 post)

  1. lizzmo
    Posted 4 years ago #

    I've looked through the forums and the general consensus seems to be that this code should work:

    <?php if (get_post_meta($post->ID, 'VIDEO', true)) {
    echo do_shortcode(get_post_meta($post->ID, 'VIDEO', true));
    } else { }; ?>

    But all that shows up is the shortcode as plain text. Help please!

    Heres a link to the page: http://design-science.org.uk/the-sum-of-all-paths/

    The video should have been above the slideshow.

Topic Closed

This topic has been closed to new replies.

About this Topic