Title: Embed PHP code
Last modified: August 31, 2016

---

# Embed PHP code

 *  [avlcodr46](https://wordpress.org/support/users/avlcodr46/)
 * (@avlcodr46)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/embed-php-code/)
 * What is the PHP code to insert your plugin?
 * I want to embed the code directly into my header.php file.
 * [https://wordpress.org/plugins/wp-image-refresh/](https://wordpress.org/plugins/wp-image-refresh/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [girish.tiwari](https://wordpress.org/support/users/girishtiwari/)
 * (@girishtiwari)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/embed-php-code/#post-7150236)
 * Hi,
 * You can place the shortcode in your WordPress template files. for e.g – <?php
   echo do_shortcode(‘[wp-image-refresh]’); ?>
 *  [guruscotty](https://wordpress.org/support/users/guruscotty/)
 * (@guruscotty)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/embed-php-code/#post-9066867)
 * I put this code into a TwentyTwelve theme and it crashed the site. The line looked
   like this:
 *  <div id=”frontimages”><?php echo do_shortcode(‘[wp-image-refresh]’); ?></div
   >
 * Without seeing the site, any ideas why?
 * Please and thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Embed PHP code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-image-refresh_79949a.svg)
 * [WP IMAGE REFRESH](https://wordpress.org/plugins/wp-image-refresh/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-image-refresh/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-image-refresh/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-image-refresh/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-image-refresh/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-image-refresh/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [guruscotty](https://wordpress.org/support/users/guruscotty/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/embed-php-code/#post-9066867)
 * Status: not resolved