Title: How to use shortcode inside ?
Last modified: June 29, 2019

---

# How to use shortcode inside ?

 *  Resolved [jeffreytay](https://wordpress.org/support/users/jeffreytay/)
 * (@jeffreytay)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/how-to-use-shortcode-inside/)
 * Very nice plugin, thanks!
 * I’m trying to make this work on a dynamically generated text that is generated
   by a short code.
 * e.g. < pre >[some-short-code]< /pre >
 * But i realise this doesn’t work.
 * How to make it work? Thanks!
    -  This topic was modified 6 years, 11 months ago by [jeffreytay](https://wordpress.org/support/users/jeffreytay/).

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

 *  Plugin Author [Mahesh Waghmare](https://wordpress.org/support/users/mahesh901122/)
 * (@mahesh901122)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/how-to-use-shortcode-inside/#post-11745965)
 * Hello,
 * Can you please share the example. Or reference site. So I can check and let you
   know the possible solution.
 *  Thread Starter [jeffreytay](https://wordpress.org/support/users/jeffreytay/)
 * (@jeffreytay)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/how-to-use-shortcode-inside/#post-11746613)
 * thanks for reply! no worries – i managed to custom code it 🙂
 *  Plugin Author [Mahesh Waghmare](https://wordpress.org/support/users/mahesh901122/)
 * (@mahesh901122)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/how-to-use-shortcode-inside/#post-11746933)
 * Great!
 * Still sharing the code snippet which helps for other users too.
 * Copy below code and add into your child theme:
 *     ```
       /**
        * Enqueue 'Copy the Code' in wp-admin/backend area.
        * 
        * @todo Change the <code>prefix_</code> and with your own unique prefix.
        * 
        * @since 1.0.0
        */
       if( ! function_exists( 'prefix_enqueue_copy_the_code_in_admin' ) ) :
       	function prefix_enqueue_copy_the_code_in_admin() {
       		if( is_callable( 'Copy_The_Code_Page::get_instance' ) ) {
       			add_action( 'admin_enqueue_scripts', array( Copy_The_Code_Page::get_instance(), 'enqueue_assets' ) );
       		}
          	}
          	prefix_enqueue_copy_the_code_in_admin();
       endif;
       ```
   
 * Gist URL for reference – [https://gist.github.com/6d102a3d6dbda0c9388fb5caa498c43c](https://gist.github.com/6d102a3d6dbda0c9388fb5caa498c43c)
 *  Thread Starter [jeffreytay](https://wordpress.org/support/users/jeffreytay/)
 * (@jeffreytay)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/how-to-use-shortcode-inside/#post-11746951)
 * Ah ok thanks for that. I actually coded the entire click-to-copy functionality
   from scratch LOL.
 *  [greenhope](https://wordpress.org/support/users/greenhope/)
 * (@greenhope)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/how-to-use-shortcode-inside/#post-12114151)
 * Hi Mahesh, can I join in this conversation?
    I have the same problem as jeffreytay..
   I should insert this shortcode: `[crp_referral_link]`
 * It brings up a different link for each user.
    when you click on copy and then
   paste the result is this: `<fieldset><code>https://www.greenhope.it/blog?ref=
   RIMNLL8</code></fieldset>`
 * In practice, in addition to copying the link, are also copied the elements:
    `
   <fieldset><code> links... </code></fieldset>`
 * I would like only the link to be copied.
 * I state that I don’t have a childe theme. Is there a alternative way? Could you
   help me please?
 * Thanks in advance
    Marco

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

The topic ‘How to use shortcode inside ?’ is closed to new replies.

 * ![](https://ps.w.org/copy-the-code/assets/icon-256x256.png?rev=3451645)
 * [Copy Anything to Clipboard for WordPress – Copy Button, Copy Text & Copy Code](https://wordpress.org/plugins/copy-the-code/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/copy-the-code/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/copy-the-code/)
 * [Active Topics](https://wordpress.org/support/plugin/copy-the-code/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/copy-the-code/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/copy-the-code/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [greenhope](https://wordpress.org/support/users/greenhope/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/how-to-use-shortcode-inside/#post-12114151)
 * Status: resolved