Title: [Plugin: Shortcodes Pro] Can´t get PHP code working
Last modified: August 20, 2016

---

# [Plugin: Shortcodes Pro] Can´t get PHP code working

 *  [alpinfieber](https://wordpress.org/support/users/kletterfieber/)
 * (@kletterfieber)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-shortcodes-pro-cant-get-php-code-working/)
 * Hi,
 * 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 ); ?> </div>
 * 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
 * [http://wordpress.org/extend/plugins/shortcodes-pro/](http://wordpress.org/extend/plugins/shortcodes-pro/)

The topic ‘[Plugin: Shortcodes Pro] Can´t get PHP code working’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/shortcodes-pro_434343.svg)
 * [Shortcodes Pro](https://wordpress.org/plugins/shortcodes-pro/)
 * [Support Threads](https://wordpress.org/support/plugin/shortcodes-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcodes-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcodes-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcodes-pro/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [alpinfieber](https://wordpress.org/support/users/kletterfieber/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-shortcodes-pro-cant-get-php-code-working/)
 * Status: not resolved