Title: Shortcode as a parameter
Last modified: December 6, 2016

---

# Shortcode as a parameter

 *  [birdj1](https://wordpress.org/support/users/birdj1/)
 * (@birdj1)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/shortcode-as-a-parameter/)
 * I have an image zoom plugin that is generated as followed
 * [image_magnify src=”SMALL_IMAGE” src_big=”ZOOMED_IMAGE” w=”400″ h=”400″ alt=”
   text” class=”alignnone size-full wp-image-100″ /]
 * I would like to pass this as the contents of a lightbox. If I define the lightbox
   thumb as the small image, I would like it to open and contain this above shortcode
   so I can use the image zoom app within the lightbox and not on the page with 
   lightbox links on
 * How do I go about passing my shortcode as the url=”” of the colorbox shortcode?

Viewing 1 replies (of 1 total)

 *  [Sherry22](https://wordpress.org/support/users/sherry22/)
 * (@sherry22)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/shortcode-as-a-parameter/#post-8577618)
 * I would be interested in learning this also

Viewing 1 replies (of 1 total)

The topic ‘Shortcode as a parameter’ is closed to new replies.

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

 * 1 reply
 * 2 participants
 * Last reply from: [Sherry22](https://wordpress.org/support/users/sherry22/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/shortcode-as-a-parameter/#post-8577618)
 * Status: not resolved