Email: info@wpitaly.it
Grazie mille! Mi sa che l’unica è creare un’opzione ad hoc.
Ci sono quasi riuscito, incappo però in un problema banale: contact form 7 non “legge” l’option value.
Ovvero, questo tag:
[select* prefix-city id:prefisso class:inputsx first_as_label “City|—†“Milan|02†“Rome|06†“Bologna|051â€]
Genera questo codice nella pagina (lavoro in locale, altrimenti metterei il link):
<select name=”prefix-city” class=”wpcf7-form-control wpcf7-select wpcf7-validates-as-required inputsx” id=”prefisso” aria-required=”true” aria-invalid=”false”><option value=””>City</option><option value=”Milan”>Milan</option><option value=”Rome”>Rome</option><option value=”Bologna”>Bologna</option></select>
Ho cercato ma non ho trovato risposte, se non questa: https://wordpress.org/support/topic/cf7-pipes-not-working/ che però non chiarisce nulla. O l’option value funziona solo con le email? (ho provato a mettere una mail dopo il pipe, ma non cambia nulla).
Se uso gli “strumenti per sviluppatori” di Chrome e intervengo sulla pagina modificando la stringa cosà¬: <option value=”02″>Milan</option> tutto funziona. Peccato che CF7 non legga il valore dopo il pipe.
ps: il “WPCF7_USE_PIPE” è settato naturalmente su “true”.
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0