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 Type Category

  1. thefidler
    Member

    I am using the code

    add_filter("gform_post_data", "update_post_type", 10, 2);
    function update_post_type($post_data, $form){

    if($form["id"] == '3'){
    $post_data["post_type"] = "event";
    }
    elseif ($form["id"] == '4'){
    $post_data["post_type"] = "schedule";
    }
    elseif ($form["id"] == '5'){
    $post_data["post_type"] = "entity";
    }
    return $post_data;
    }

    to create my custom post type. Everything works fine except that the category does not update. Is there something additional I have to do to update a category on a custom post type?

    Posted 13 years ago on Friday November 26, 2010 | Permalink