Support » Plugin: Post My CF7 Form » Can’t get Taxonomies filled with CF7 data

  • Resolved nici-

    (@nici-2)


    Hi there,

    I have created a plugin for custom post type including two custom taxonomies and use “Advanced Custom Fields” Plugin to additionally create a couple of custom fields.

    I have created a CF7 Form and fill all these fields – no problem so far.

    Only the two taxonomies: I simply can’t get the data into these. I learned from another support thread to use “empty” select fields in CF7 and that these will get filled with the data as soon as they are mapped. Only they don’t.

    Field is defined in CF 7 as:

    ***
    <label> Sortiment
    [select sortiment] </label>
    ***

    and

    ***
    <label> Umsatz: ø Jahresumsatz (netto, nach Abzug Stornos und Retouren) in den letzten 3 Jahren?
    [select jahresumsatz] </label
    ***

    I mapped these field both to the referring taxonomy. Still the dropdown fields do not show any options.

    Where do I go wrong? Thank you very much for your help!

    Best regards
    nici-

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter nici-

    (@nici-2)

    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

    Thread Starter nici-

    (@nici-2)

    Also some Links:

    Post archive page for the custom posts:
    https://www.shopanbieter.de/shopangebote
    or showing the taxonomies (however links not working yet):
    https://www.shopanbieter.de/marktplatz-shopangebote

    Form:
    https://www.shopanbieter.de/marktplatz-angebot-erfassen

    Miniform for testing:
    https://www.shopanbieter.de/minitest

    Plugin Author Aurovrata Venet

    (@aurovrata)

    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…

    what version of the plugin are you using?

    Plugin Author Aurovrata Venet

    (@aurovrata)

    Having not heard back, I am assuming you have resolved your issue and marking it as such.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.