Also I do not find the mapping tab or mapping fields when creating a new form. All I have is the tabs for “Form”, “Email”, “Messages” and “Additional Settings”. So I do the mapping with the “create_map” link in CF7 form list…
Plugin Versions (both, Post My and Grid Plugin) are updated, CF7 too and WordPress Core also. Language is German, in case it matters. Theme is Genesis.
Now: When using a simple drop down field the taxonomy data is not inserted. When using a dynamic dropdown field I can get the taxonomy data in the dropdown – but I am not sure how to map it then (got nothing to work yet).
In case you need to know:
The taxonomies are created like this
*** snipp **
// 1. Sortimente-Kategorien anlegen als hierarchische Taxonomie
add_action( 'init', 'create_assortment_hierarchical_taxonomy', 0 );
function create_assortment_hierarchical_taxonomy() {
// Add new taxonomy, make it hierarchical like categories
//first do the translations part for GUI
$labels = array(
'name' => _x( 'Sortimente', 'taxonomy general name' ),
'singular_name' => _x( 'Sortiment', 'taxonomy singular name' ),
'search_items' => __( 'Sortimente durchsuchen' ),
'all_items' => __( 'Alle Sortimente' ),
'parent_item' => __( 'Eltern Sortiment' ),
'parent_item_colon' => __( 'Eltern Sortiment:' ),
'edit_item' => __( 'Sortiment bearbeiten' ),
'update_item' => __( 'Sortiment speichern' ),
'add_new_item' => __( 'Sortiment hinzufügen' ),
'new_item_name' => __( 'Neue Sortiment-Bezeichnung' ),
'menu_name' => __( 'Sortimente' ),
);
// Now register the taxonomy
register_taxonomy('sortimente',array('phy_shop_offers'), array(
'hierarchical' => true,
'labels' => $labels,
'show_ui' => true,
'show_in_rest' => true,
'show_admin_column' => true,
'query_var' => 'sortiment',
'rewrite' => array( 'slug' => 'sortiment' ),
));
}
// 2. Umsatzgruppen-Kategorien anlegen als hierarchische Taxonomie
add_action( 'init', 'create_volume_hierarchical_taxonomy', 0 );
function create_volume_hierarchical_taxonomy() {
// Add new taxonomy, make it hierarchical like categories
//first do the translations part for GUI
$labels = array(
'name' => _x( 'Umsatzgruppen', 'taxonomy general name' ),
'singular_name' => _x( 'Umsatzgruppe', 'taxonomy singular name' ),
'search_items' => __( 'Umsatzgruppen durchsuchen' ),
'all_items' => __( 'Alle Ums?tze' ),
'parent_item' => __( 'Eltern Umsatzgruppe' ),
'parent_item_colon' => __( 'Eltern Umsatzgruppe:' ),
'edit_item' => __( 'Umsatzgruppe bearbeiten' ),
'update_item' => __( 'Umsatzgruppe speichern' ),
'add_new_item' => __( 'Umsatzgruppe hinzufügen' ),
'new_item_name' => __( 'Neue Umsatzgruppen-Bezeichnung' ),
'menu_name' => __( 'Umsatzgruppen' ),
);
// Now register the taxonomy
register_taxonomy('umsaetze',array('phy_shop_offers'), array(
'hierarchical' => true,
'labels' => $labels,
'show_ui' => true,
'show_in_rest' => true,
'show_admin_column' => true,
'query_var' => 'umsatz',
'rewrite' => array( 'slug' => 'umsatz' ),
));
}
*** snapp ***
It actually IS my first plugin and I am still learning — sorry for that –, but I think this is ok that way. Everything works when the posts are added in backend.
Now I desperately need to have users add their content via front end form…
Best regards
Nicola