• i was trying to call a plugin in the PHP
    [youtube_video id=”uAOLzRhKF9c”]

    and i wanted to get the video id from custom fields
    and i tried the following

    <?php $video = get_post_meta($post->ID, ‘video_url’, true); ?>
    <?php echo do_shortcode(‘[youtube_video id=’.$Video.’]’); ?>

    but not working … any help ?

The topic ‘echo shortcode and custom fields help !’ is closed to new replies.