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.

WP 3.0 + Custom Post Types + Custom Post Type Taxonomies

  1. Has anyone experimented with integrating the new "Custom Post Type Taxonomies" available in WP 3.0 with a GF?

    The code that generates a meta box for Custom Post Type Taxonomies within the Wordpress Admin seems easy enough:

    foreach ( get_object_taxonomies($post_type) as $tax_name ) {
    	$taxonomy = get_taxonomy($tax_name);
    	if ( ! $taxonomy->show_ui )
    		continue;
    
    	$label = isset($taxonomy->label) ? esc_attr($taxonomy->label) : $tax_name;
    
    	if ( !is_taxonomy_hierarchical($tax_name) )
    		add_meta_box('tagsdiv-' . $tax_name, $label, 'post_tags_meta_box', $post_type, 'side', 'core');
    	else
    		add_meta_box($tax_name . 'div', $label, 'post_categories_meta_box', $post_type, 'side', 'core', array( 'taxonomy' => $tax_name ));
    }

    Any ideas how to get that to display on a GF?

    Posted 14 years ago on Tuesday May 18, 2010 | Permalink
  2. So, you want to display your custom taxonomies in a drop down field in GF so that users can choose one of them?

    Posted 14 years ago on Tuesday May 18, 2010 | Permalink
  3. Alex, that's exactly what I'm trying to do. Sorry for not explaining better :)

    Posted 14 years ago on Tuesday May 18, 2010 | Permalink
  4. We will be updating Gravity Forms to support Custom Post Types and Custom Taxonomies natively in the form builder but that will not happen until after WordPress 3.0 is released.

    Posted 14 years ago on Tuesday May 18, 2010 | Permalink
  5. Is there by any a chance a way to do it now using GF hooks?

    Posted 14 years ago on Tuesday May 18, 2010 | Permalink
  6. Sure, it's possible using hooks. See this thread for details, specifically the responses by Alex:

    http://forum.gravityhelp.com/topic/custom-taxonomies

    Posted 14 years ago on Tuesday May 18, 2010 | Permalink
  7. Parker
    Member

    Any update on integration with 3.0's custom post_types? This thread is 3+ months old and WP 3.0 has been out for a while now....

    I need to build forms that create posts that are specific to each of the unique post types that my site has.

    Thanks in advance for the update.

    Posted 14 years ago on Sunday August 29, 2010 | Permalink
  8. @WPFREAK Custom Post Type and Custom Taxonomies are possible via hooks. We have decided not to add support for it in the core Gravity Forms plugin do to how we want to approach it. Instead, we will be releasing an Add-On that is going to be extremely powerful and allow you to do custom post types and custom taxonomies in an extremely cool way. Stay tuned. If you need to do it now, you need to use the available API hooks to do so.

    Posted 14 years ago on Monday August 30, 2010 | Permalink