gnucco123
Forum Replies Created
-
Forum: Plugins
In reply to: [Meta Box] Question about “Clone Empty Start” featureHi, yes, it’s perfect now. Thank you very much for your time and effort.
Forum: Plugins
In reply to: [Meta Box] Question about “Clone Empty Start” featureHi @tanng, thanks for you interest. The code in my functions.php is the following:
add_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes' );
function your_prefix_register_meta_boxes( $meta_boxes ) {
$prefix = '';
$meta_boxes[] = [
'title' => esc_html__( 'Info', 'text-domain' ),
'id' => 'info',
'post_types' => ['post'],
'context' => 'normal',
'priority' => 'high',
'fields' => [
[
'id' => $prefix . 'regione',
'name' => esc_html__( 'Regione', 'text-domain' ),
'type' => 'checkbox_list',
'options' => [
'Lombardia' => esc_html__( 'Lombardia', 'text-domain' ),
'Veneto' => esc_html__( 'Veneto', 'text-domain' ),
'Emilia Romagna' => esc_html__( 'Emilia Romagna', 'text-domain' ),
'Trentino Alto Adige' => esc_html__( 'Trentino Alto Adige', 'text-domain' ),
'Liguria' => esc_html__( 'Liguria', 'text-domain' ),
'Friuli Venezia Giulia' => esc_html__( 'Friuli Venezia Giulia', 'text-domain' ),
'Toscana' => esc_html__( 'Toscana', 'text-domain' ),
'Marche' => esc_html__( 'Marche', 'text-domain' ),
'Piemonte' => esc_html__( 'Piemonte', 'text-domain' ),
'Valle dAosta' => esc_html__( 'Valle d
Aosta', 'text-domain' ),
'Umbria' => esc_html__( 'Umbria', 'text-domain' ),
'Abruzzo' => esc_html__( 'Abruzzo', 'text-domain' ),
'Basilicata' => esc_html__( 'Basilicata', 'text-domain' ),
'Sicilia' => esc_html__( 'Sicilia', 'text-domain' ),
'Svizzera' => esc_html__( 'Svizzera', 'text-domain' ),
'Austria' => esc_html__( 'Austria', 'text-domain' ),
'Francia' => esc_html__( 'Francia', 'text-domain' ),
'Belgio' => esc_html__( 'Belgio', 'text-domain' ),
'Norvegia' => esc_html__( 'Norvegia', 'text-domain' ),
],
'inline' => 1,
],
[
'id' => $prefix . 'distanza_da_casa',
'type' => 'text',
'name' => esc_html__( 'Distanza da casa', 'text-domain' ),
],
[
'id' => $prefix . 'partenza',
'type' => 'text',
'name' => esc_html__( 'Partenza', 'text-domain' ),
],
[
'id' => $prefix . 'arrivo',
'type' => 'text',
'name' => esc_html__( 'Arrivo', 'text-domain' ),
],
[
'id' => $prefix . 'rientro',
'name' => esc_html__( 'Rientro', 'text-domain' ),
'type' => 'checkbox_list',
'options' => [
'Bici' => esc_html__( 'Bici', 'text-domain' ),
'Bici (anello)' => esc_html__( 'Bici (anello)', 'text-domain' ),
'Auto' => esc_html__( 'Auto', 'text-domain' ),
'Treno' => esc_html__( 'Treno', 'text-domain' ),
'Bus' => esc_html__( 'Bus', 'text-domain' ),
'Bus con portabici' => esc_html__( 'Bus con portabici', 'text-domain' ),
],
'inline' => 1,
],
[
'id' => $prefix . 'orario_treni_sabato',
'name' => esc_html__( 'Orario treni (Sabato)', 'text-domain' ),
'type' => 'time',
'js_options' => [
'stepMinute' => 1,
],
'clone' => 1,
'clone_as_multiple' => true,
],
[
'id' => $prefix . 'orario_treni_domenica',
'name' => esc_html__( 'Orario treni (Domenica)', 'text-domain' ),
'type' => 'time',
'js_options' => [
'stepMinute' => 1,
],
'clone' => 1,
'clone_as_multiple' => true,
],
[
'id' => $prefix . 'ex_ferrovia',
'type' => 'text',
'name' => esc_html__( 'Ex ferrovia?', 'text-domain' ),
],
[
'id' => $prefix . 'link',
'type' => 'text',
'name' => esc_html__( 'Link', 'text-domain' ),
'clone' => 1,
'clone_as_multiple' => true,
],
[
'id' => $prefix . 'fiume',
'type' => 'text',
'name' => esc_html__( 'Fiume', 'text-domain' ),
'clone' => 1,
'clone_as_multiple' => true,
],
[
'id' => $prefix . 'tipo_ciclabile',
'name' => esc_html__( 'Tipo ciclabile', 'text-domain' ),
'type' => 'checkbox_list',
'options' => [
'Strada' => esc_html__( 'Strada', 'text-domain' ),
'Asfalto' => esc_html__( 'Asfalto', 'text-domain' ),
'Sterrato' => esc_html__( 'Sterrato', 'text-domain' ),
'Sentiero MTB' => esc_html__( 'Sentiero MTB', 'text-domain' ),
],
'inline' => 1,
],
[
'id' => $prefix . 'note_html',
'name' => esc_html__( 'Note_html', 'text-domain' ),
'type' => 'wysiwyg',
],
[
'id' => $prefix . 'note_importanti',
'type' => 'textarea',
'name' => esc_html__( 'NOTE IMPORTANTI!', 'text-domain' ),
],
[
'id' => $prefix . 'file_upload',
'type' => 'file_upload',
'name' => esc_html__( 'File Upload', 'text-domain' ),
'max_status' => false,
],
[
'id' => $prefix . 'distanza_gpx',
'type' => 'number',
'name' => esc_html__( 'Distanza gpx [km]', 'text-domain' ),
],
[
'id' => $prefix . 'related_posts',
'type' => 'post',
'name' => esc_html__( 'Related Posts', 'text-domain' ),
'post_type' => 'post',
'field_type' => 'select_advanced',
'multiple' => true,
],
[
'id' => $prefix . 'nazione_temp',
'name' => esc_html__( 'Nazione4temp', 'text-domain' ),
'type' => 'checkbox_list',
'options' => [
'Italia' => esc_html__( 'Italia', 'text-domain' ),
'Francia' => esc_html__( 'Francia', 'text-domain' ),
'Germania' => esc_html__( 'Germania', 'text-domain' ),
'Spagna' => esc_html__( 'Spagna', 'text-domain' ),
'Danimarca' => esc_html__( 'Danimarca', 'text-domain' ),
'Irlanda' => esc_html__( 'Irlanda', 'text-domain' ),
'Scozia' => esc_html__( 'Scozia', 'text-domain' ),
'Austria' => esc_html__( 'Austria', 'text-domain' ),
'Slovenia' => esc_html__( 'Slovenia', 'text-domain' ),
'Olanda' => esc_html__( 'Olanda', 'text-domain' ),
'Svizzera' => esc_html__( 'Svizzera', 'text-domain' ),
],
'inline' => 1,
],
],
];
return $meta_boxes;
}If I start a new post, I see the box as the image here
Then if I add a custom field in a repeatable field (“Fiumi” for example, see here)
and then hit “Publish”, the result with the latest 5.10.2 version is this
but I prefer the 5.9.11 behaviour, which is this
Thanks again for your help, I’ve searched in support forums but I didn’t find anything about it.
Bye
- This reply was modified 1 month ago by gnucco123.
- This reply was modified 1 month ago by Steven Stern (sterndata).
Forum: Plugins
In reply to: [Media Library Assistant] 3.17 “order=DESC” in widget strange behaviourThanks David. The Development Version of MLA works fine and handle the order parameter fine in my widget.
Bye, Fede.Hi Tim, it’s really ok now, thanks a lot.
Hi Tim, as a feedback I just found out that the plugin cannot show all
meta_value
when they are saved as array under the samemeta_key
, I mean if you save different custom fields under the samemeta_key
the widget only shows the 1st array entry.
Bye, Fede.Hi Tim, I’ve already tried the development version and really works ok. As a thank you please tell me how to translate the plugin in Italian.
PS OpenCycleMap is the best source for my weekend trips as it helps me staying far from monstrous dangerous cars and trucks ??
Bye, Fede
Oh, thanks a lot. Of course in my first message the
custom field “river”
should be
custom field “region”
.
Again, thanks a lot for your unique (for real!) plugin.
Fede