jaredatch/Custom-Metaboxes-and-Fields-for-WordPress — Issue #127: cpt-onomies
Author: manninmedia
Created: 2012-03-05 12:27:03+00:00
State: open

Hello,

dont know whether you can help, I have the cpt-onomies plugin installed which transforms custom post types into a taxonomy which you can then link to other post types as you would with standard taxonomies.

I am/have been trying to combine this plugin with your custom meta boxes particularly with the taxonomy dropdown I will admit it kinda works as im 90% of the way there.

At the moment my cpt-onomies are displayed in the dropdown successfully however when you make you choice and click publish/update.

The taxonomy does not save and defaults back to the first one, have you any idea how i might sort this?

I am running latest Wordpress and latest version of CMB

Code:

$prefix = '_cmb_'; // Prefix for all fields
function be_sample_metaboxes( $meta_boxes ) {
global $prefix;
$meta_boxes[] = array(
'id' => 'company_metabox',
'title' => 'Current Employer',
'pages' => array('advocate'), // post type
'context' => 'normal',
'priority' => 'high',
'show_names' => true, // Show field names on the left
'fields' => array(
array(
'name' => 'Firms',
'desc' => 'Description Goes Here',
'id' => $prefix . 'firm_taxonomy_select',
'type' => 'taxonomy_select',
'taxonomy' => 'firm', // Taxonomy Slug
),
),
);

cpt-onomy is also firm so correct name and the terms do show up just not saved.