Shortcodes Pro
Can´t get PHP code working (1 post)

  1. alpinfieber
    Posted 3 years ago #


    I want to add a shortcode with this php function. I tried a lot but none of my tries did what it should do.
    I want to replace this code with a button in tiny mce:

    <div class="single-video">
    <?php echo get_post_meta( $post->ID, 'video_embed', true ); ?>

    The main problem seems to be the echo in the function. The result of the echo is a embed code for videos which are responsive. They automatically resize to the optimal width.

    Can someboy help me please?

    Thanks in Advance, Chris


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Shortcodes Pro
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic