Title: Nesting shortcodes
Last modified: September 1, 2016

---

# Nesting shortcodes

 *  [grimesgw](https://wordpress.org/support/users/grimesgw/)
 * (@grimesgw)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/nesting-shortcodes-3/)
 * Hi, love the plugin! Works great as expected. I have a question about the shortcode.
   How do I nest a shortcode within the Shortcode Redirect shortcode?
 * I am dynamically creating Pages using Ninja Forms field data like so:
    [ninja_forms_field
   id=6]=first name field=John [ninja_forms_field id=18]=last name field=Smith
 * Using the above two shortcodes, I can easily create a page like so: xyz.com/JohnSmith.
   I need this to place the Shortcode Redirect code onto this page so that after
   a few seconds it redirects to another site I’m referring traffic iwth a uniqu
   GUID added like so: [http://123.com/?src=JohnSmith](http://123.com/?src=JohnSmith)
 * I already have the page creation side of things figured out; the next step is
   how to nest the form data into the Shortcode Redirect code, essentially like 
   so:
 * `[redirect url='http://123.com/?src=[ninja_forms_field id=6][ninja_forms_field
   id=18]' sec='10']`
 * or as the output should look:
 * `[redirect url='http://123.com/?src=JohnSmith' sec='10']`
 * In other words, the “JohnSmith” part must be dynamic based on the field data 
   entered.
 * Thanks!
 * [https://wordpress.org/plugins/shortcode-redirect/](https://wordpress.org/plugins/shortcode-redirect/)

The topic ‘Nesting shortcodes’ is closed to new replies.

 * ![](https://ps.w.org/shortcode-redirect/assets/icon-256x256.png?rev=3508348)
 * [Shortcode Redirect](https://wordpress.org/plugins/shortcode-redirect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcode-redirect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcode-redirect/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcode-redirect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcode-redirect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcode-redirect/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [grimesgw](https://wordpress.org/support/users/grimesgw/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/nesting-shortcodes-3/)
 * Status: not resolved