Support » Fixing WordPress » Do_Shortcode with embed code not working

  • I’m trying to use Custom Field types to embed Youtube videos in a more organized fashion and using the Do_Shortcode() would seem to work perfectly, however this:

    <?php echo do_shortcode('[embed][/embed]'); ?>

    Does not seem to work, however in the same single.php file this does work perfectly:

    <?php echo do_shortcode(‘[gallery link="file" size="thumbnail" icontag="div"]‘); ?>

    I put them one after another to test them out, any ideas why the [embed] shortcode doesn’t get parsed (it just shows nothing)

    If I do the embed shortcode directly into the post it works perfectly.



Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Do_Shortcode with embed code not working’ is closed to new replies.