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.

Assign a form to a custom post-type?

  1. anointed
    Member

    I'm just now starting to dig into the gravity ability to actually allow a user to create a post. Most everything makes sense to me, but I can't figure out where to tell gravity to force the post to a specific post-type.

    In my scenario, I have building a form to allow users to upload 'testimony' post types. I do NOT want to simply use a category for this, but rather for numerous reasons need to use a specific post type.

    Is this a hidden easter egg somewhere?
    I see post types mentioned all over the place in the forums, but none mention how to set the form to post to a specified post type.

    I have already created the post type, so I was expecting a dropdown somewhere to make the selection. Gravity does seem to pickup on all of my custom metabox fields without issue.

    Posted 14 years ago on Sunday May 30, 2010 | Permalink
  2. Yes it is possible using an available API hook and some custom PHP you would have to add to your themes function.php file.

    See this thread:

    http://forum.gravityhelp.com/topic/add-a-form-to-create-a-new-custom-post-type

    We are going to be adding both custom post type and custom taxonomy support as a feature in Gravity Forms. However, we are waiting for the launch of WordPress 3.0 before we do so.

    Posted 14 years ago on Monday May 31, 2010 | Permalink
  3. anointed
    Member

    @Carl
    If you need any extra help beta testing prior to the official release, I am more than willing. I have been running 3.0 since the alpha stage and quite active within the trac. I already have multiple sites using post-types, including multi-relational post types working perfectly. My understanding of this system is pretty good.

    Example sandbox post type setup:
    http://deardaddy.org/sermons/

    Posted 14 years ago on Monday May 31, 2010 | Permalink