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.

form for custom post type

  1. My WP site uses a custom post type, shops.

    I want users to enter the information for this custom post type (the custom fields) in a form. How do I connect my form to the custom post type ? I can see a drop down with all my defined custom fields but I can not find the title of the (custom) post there because I am using the default title of the custom post for the shopname.

    Hope someone understands my problem here.

    Thanks
    Luit

    Posted 7 years ago on Monday September 17, 2012 | Permalink
  2. Official documentation for the gform_post_data filter:
    http://www.gravityhelp.com/documentation/page/Gform_post_data

    This question showcases how to change the post type using the filter:
    http://www.gravityhelp.com/forums/topic/files-not-being-added-to-gallery#post-75029

    Ignore the question and focus on the code. If you need help adapting that code to your situation, please let us know. It does not sound like you need two conditions, for form 5 and form 7 in this code, and instead of 'lost-birds' and 'found-birds' you would be using 'shops' if that is the name of your custom post type.

    Posted 7 years ago on Wednesday September 19, 2012 | Permalink