• I’ve used this plugin many times in the past with great success, but today… ugh. The post type I need to associate with my form just isn’t showing up in the “select post type” dropdown after “Save as post type” is checked. All my other CPTs are there; just not the one I need.

    I activated the plugin that registers the post type after this form was created. (I had not yet checked “Save as post type.”) Do I need to create a new form? Is there a cache I need to clear somewhere?

    https://wordpress.org/plugins/gravity-forms-custom-post-types/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Stephanie Leary

    (@sillybean)

    Quick workaround for anyone else having this problem: I just set the post type after submission using the Gravity hook.

    add_action('gform_entry_created', 'foo_form_creation_filter');
    function foo_form_creation_filter($entry, $form) {
    	set_post_type( $entry['id'], 'my-post-type' );
    }

    Of course, I’d much rather have the form settings reflect what’s going on. I’ve tried de- and reactivating my CPT plugin, creating a new form… this CPT still won’t show up.

    Not sure if I understand your problem and solution, but I’m having a problem where my Gravity Form is saving to the Posts post type instead of the custom post type, which I can indeed see in the Advanced tab on the field and can indeed set to the correct custom post type. The entry is just not going to the right place.

    It sounds like you’re setting the post type after submission, so I wonder will this help me force it into the correct post type? What do you think?

    And where are you enter this add_action exactly? What file and what plugin? Thanks!

    I had the same issue. Setting the ‘public’ argument to ‘true instead of ‘false’ fixed this.
    Using the latest GF 1.8.9

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CPT doesn't appear in the "Save as post type" dropdown’ is closed to new replies.