Forum Replies Created
-
AuthorPosts
-
luigi gaudino
ParticipantThanks, it works. Do you have one also for ajax submission?
luigi gaudino
Participantok thanks. I already did it using custom code, i was just wondering if there was a way to do this using metabox.
luigi gaudino
ParticipantI think I explained myself badly: I intended to create an attachment-type post with the classic main image but use frontend submission to do so
luigi gaudino
ParticipantSincerely neither of the 2(no custom code on permissions and i not use plugins anymore, apart query monitor). Anyway i resolved using filter register_post_type_args
luigi gaudino
ParticipantOk thanks, i created my function to resolve that but could you consider if you want to add also to single fields and also add parameters to custom callback would be good
luigi gaudino
ParticipantOk great, thanks. Please remember also my other ticket to resolve json import id problem.
luigi gaudino
ParticipantThanks
luigi gaudino
Participantmetabox result image updated: https://ibb.co/K6FpKjY
luigi gaudino
ParticipantThe button Field Groups/import use wordpress function wp_insert_post or a metabox custom function?
June 3, 2023 at 5:33 PM in reply to: How to use Metabox to create custom fields within Menu items #42033luigi gaudino
ParticipantIt is abandoned this feature?
luigi gaudino
ParticipantResolved finding this threads:
1 - https://support.metabox.io/topic/how-to-update-mb-settings-field-programatically/
2- https://github.com/wpmetabox/meta-box/issues/1245Can you close, thanks
luigi gaudino
Participantok great. Thanks and resolved!
luigi gaudino
ParticipantThanks very good, i noticed function rwmb_get_registry, can you make a example how to use it to get field 'cars' without address to services?
November 30, 2021 at 4:42 PM in reply to: ✅How to use wp_insert_post with cloneable field group #32281luigi gaudino
ParticipantHi Long, this is my snippet:
wp_insert_post( $postarr=array( //'ID' => 0, //'post_author' => , //'post_date' => , //'post_date_gmt' => , //'post_content' => , //'post_content_filtered'=> '', 'post_title' => 'Contatti', //'post_excerpt' => '', 'post_status' => 'Publish', 'post_type' => 'forms', //'comment_status' => '', //'ping_status' => '', //'post_name' => '', //'to_ping' => '', //'pinged' => '', //'post_modified' => '', //'post_modified_gmt' => '', //'post_parent' => '', //'menu_order' => '', //'post_mime_type' => '', //'guid' => '', //'import_id' => '', //'post_category' => '', //'tags_input' => '', //'tax_input' => '', 'meta_input' =>[ 'form_action' => '#form-Contatti', 'form_method' => 'POST', 'form_value' => 'INVIA', 'form_campo' => [ //group ID [ 'form_campo_nome'=>'nome', 'form_campo_tipo'=>'text', 'form_campo_label'=>'Nome', 'form_campo_placeholder'=>'Inserisci il tuo nome' ], [ 'form_campo_nome'=>'email', 'form_campo_tipo'=>'email', 'form_campo_label'=>'Email', 'form_campo_placeholder'=>'Inserisci la tua email' ], [ 'form_campo_nome'=>'messaggio', 'form_campo_tipo'=>'textarea', 'form_campo_rows'=>'4', 'form_campo_cols'=>'50', 'form_campo_label'=>'Messaggio', 'form_campo_placeholder'=>'Inserisci il tuo messaggio' ] ] ] ), $wp_error=false, $fire_after_hooks=true );November 30, 2021 at 6:34 AM in reply to: ✅How to use wp_insert_post with cloneable field group #32268luigi gaudino
ParticipantSorry resolved by myself
-
AuthorPosts