Title: PHP Shortcode
Last modified: August 30, 2016

---

# PHP Shortcode

 *  Resolved [babyuniverse](https://wordpress.org/support/users/babyuniverse/)
 * (@babyuniverse)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-shortcode-11/)
 * Hi Guys,
 * On the old BM Shots version you had PHP code as follows
 *     ```
       <?php
       $url = 'http://www.binarymoon.co.uk/';
       $width = 300;
       echo bm_mshot ($url, $width);
       ?>
       ```
   
 * Is there an equivalent for Browser Shots? I am looking to generate a screen shot
   based on a custom field which pulls customer url.
 * Thanks
    Richard
 * [https://wordpress.org/plugins/browser-shots/](https://wordpress.org/plugins/browser-shots/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [binarymoon](https://wordpress.org/support/users/binarymoon/)
 * (@binarymoon)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/php-shortcode-11/#post-6810018)
 * I haven’t tested this but I think the following will work:
 *     ```
       <?php
       $url = 'http://www.binarymoon.co.uk/';
       $width = 300;
       $height = 125;
       BrowserShots::get_shot( $url, $width, $height );
       ?>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘PHP Shortcode’ is closed to new replies.

 * ![](https://ps.w.org/browser-shots/assets/icon-128x128.png?rev=2550604)
 * [Browser Screenshots](https://wordpress.org/plugins/browser-shots/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/browser-shots/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/browser-shots/)
 * [Active Topics](https://wordpress.org/support/plugin/browser-shots/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/browser-shots/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/browser-shots/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [binarymoon](https://wordpress.org/support/users/binarymoon/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/php-shortcode-11/#post-6810018)
 * Status: resolved