Support » Fixing WordPress » Outputting custom field in plain text

  • Resolved studioburst

    (@studioburst)


    I’m trying to output the contents of a custom field in plain text, the custom field contains a standard youtube embed code, which is shown at the top of the post without problem, but I also want to add the embed code being used in plain text (so others can copy/paste it).

    To output the playable video I’m using:

    <?php echo get_post_meta($post->ID, "video", true); ?>

    I’ve tinkered for a few hours now and can’t get the embed code to be shown in plain text (in a small iframe).

    Anyone point me in the right direction please?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Outputting custom field in plain text’ is closed to new replies.