Title: Code vs shortcode?
Last modified: January 29, 2018

---

# Code vs shortcode?

 *  Resolved [avjamiegee](https://wordpress.org/support/users/avjamiegee/)
 * (@avjamiegee)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/code-vs-shortcode/)
 * I’d like to use this plugin on my website, but I need to use it on my sidebar
   which is hardcoded on the website (rather than widgets). Is there a place to 
   get the php embed code for this plugin, rather than the [shortcode]? Thanks for
   your help!

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

 *  Plugin Author [girish.tiwari](https://wordpress.org/support/users/girishtiwari/)
 * (@girishtiwari)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/code-vs-shortcode/#post-9916667)
 * Hi [@avjamiegee](https://wordpress.org/support/users/avjamiegee/),
 * The shortcodes can also be embedded using php code. Here is the example.
 * <?php echo do_shortcode(‘[wp-image-refresh]’); ?>
 *  Thread Starter [avjamiegee](https://wordpress.org/support/users/avjamiegee/)
 * (@avjamiegee)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/code-vs-shortcode/#post-9919051)
 * Thanks for your help! I ended up finding a bit of php code that allowed me to
   do a random image swap without the plugin, but if I need anything more robust
   I’ll definitely return to this plugin!
 *  Plugin Author [girish.tiwari](https://wordpress.org/support/users/girishtiwari/)
 * (@girishtiwari)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/code-vs-shortcode/#post-9921044)
 * Hi [@avjamiegee](https://wordpress.org/support/users/avjamiegee/),
 * Thank you. Closing this support ticket.

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

The topic ‘Code vs shortcode?’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [girish.tiwari](https://wordpress.org/support/users/girishtiwari/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/code-vs-shortcode/#post-9921044)
 * Status: resolved