PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Is a Nested Gravity Forms Shortcode Possible?

  1. Hi everyone,

    I'm having a problem nesting a Gravity Forms shortcode inside one of my theme shortcodes. After some digging I found out Wordpress has trouble with nested shortcodes out of the box, so I found a plugin (Outbridge Nested Shortcodes) that implements a "do_shortcode filter" that resolves the problem. However my issue is, the plugin seems to work on every shortcode except Gravity Forms.

    Does anyone have a solution to display a Gravity Form within another shortcode?

    Thanks in advance!

    Posted 12 years ago on Thursday June 28, 2012 | Permalink
  2. David Peralty

    Can you give me an example of what you are trying to do? I'm curious about why you would want to nest short codes.

    Posted 12 years ago on Thursday June 28, 2012 | Permalink
  3. I'm trying to nest different contact forms inside a tabbed group. You can see an example of the tabbed group I'm talking about at the bottom of this page: http://radial.premiumcoding.com/demo.php

    Thanks

    Posted 12 years ago on Thursday June 28, 2012 | Permalink
  4. David Peralty

    I don't think the Gravity Forms shortcode is going to allow you to run it from within another shortcode. Have you tried to embed it using the PHP call instead?

    Posted 12 years ago on Thursday June 28, 2012 | Permalink
  5. Hmm no, I haven't. Where would I find the code needed to do that?

    Posted 12 years ago on Friday June 29, 2012 | Permalink
  6. David Peralty

    http://www.gravityhelp.com/documentation/page/Embedding_A_Form
    Under function call.

    Posted 12 years ago on Friday June 29, 2012 | Permalink
  7. Great, thank you, I'll try that! :)

    Posted 12 years ago on Friday June 29, 2012 | Permalink