Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress How to Build a WordPress Theme WordPress and Forms Submit WordPress Content from the Front-End

Dave Harlander
Dave Harlander
2,821 Points

Does Gravity Form have to be on a page by itself or can you include it in a page via a custom post?

I've tried to include a gravity form on one of my pages that has other content. I have multiple loops on the page and created a custom post that is my gravity form I want to add to the page. The first loop I have is to call out the custom post that has my gravity form in it. The next loop displays the answers from the form after I have approved the submission. My problem is the form isn't showing up as planned. I can see the form is working by previewing the custom post, but on the page I want the form to display its just displaying as the shortcode.

e.g [GRAVITYFORM ID="5" NAME="TRIAL " TITLE="FALSE" DESCRIPTION="FALSE"]

Is it possible to do this, or should I being doing this a different way?

2 Answers

The Gravity Forms + Custom Post Types plugin hasn't been updated in 2 years, but may give you some insight on how to handle this.