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.

Custom Post Status

  1. Gil Namur
    Member

    Hi there!
    I have created a form to allow guest author contributions. We use the Edit Flow plugin for custom post statuses. The only 3 status options in the Post Status option of the "Article" field are Draft, Pending Review and Published. Is there a way to use a custom post status? In this case, it would be "Guest Draft".
    Thanks and cheers,
    Gil

    Posted 11 years ago on Wednesday January 19, 2011 | Permalink
  2. Hi Gil,

    You can set the post status of a post created by a Gravity Form using the gform_post_data hook. Here is an example:

    http://pastie.org/1480196

    Posted 11 years ago on Thursday January 20, 2011 | Permalink
  3. Gil Namur
    Member

    Hi David :-)

    Thanks so much! Where would I place that code? (its true .. I'm a newbie!)
    Cheers,
    Gil

    Posted 11 years ago on Thursday January 20, 2011 | Permalink
  4. Sorry Gil, neglected to mention that this would go in your functions.php. One other thing to note, I'm not 100% sure what the backend value for your custom post status is; the "guest_draft" you see in the code was just a best guess.

    Posted 11 years ago on Thursday January 20, 2011 | Permalink
  5. Gil Namur
    Member

    Thanks David!
    I will give it a try after I wake up a bit more and let you know how it went.
    I am going to upgrade to the developer license as well. Is there a "cost effective" (read discount coupon) I can use?
    Cheers,
    Gil

    Posted 11 years ago on Thursday January 20, 2011 | Permalink
  6. If you send an upgrade request through the contact form on the site here:

    http://www.gravityhelp.com/contact-us/

    ...we will get an upgrade coupon processed for you as soon as possible, which might be just a hair longer than usual as several members of the team are currently traveling. :)

    Posted 11 years ago on Thursday January 20, 2011 | Permalink