Forum Replies Created
-
AuthorPosts
-
Nicholas Cox
Participantpicture wont embed so here is a link https://ibb.co/3RLxy1r
Nicholas Cox
ParticipantI have an update, I have figured out why its doing this, basically i wrapped a few of my metabox forms with
is_admin()check. So when i removeis_admin()the config ID outputs correctly inrwmb_frontend_validate.I was told if i wrapped a form with
if ( ! is_admin() )i could hide the form from the admin area. So ideally would like to keep this in if possible.if ( ! is_admin() ) { global $wpdb; $meta_boxes[] = [ 'title' => 'Filter Products', 'post_types' => 'product', 'storage_type' => 'custom_table', 'table' => $wpdb->prefix . 'dc_products', 'id' => 'dc-product-filtering', 'context' => 'normal', 'fields' => ............... ]; }Nicholas Cox
Participantok thanks!
Nicholas Cox
Participantok so when you add more than one field group IDs to the shortcode, tabs are then not supported
Nicholas Cox
Participantok thanks, i guess that might be the case but as you have the functionality for post data i thought it would extend to other field types.
Nicholas Cox
Participanthi
ok so if i add a tab for the whole form for 'meta-box-id-1' and the same for 'meta-box-id-2' etc. Then when i add them to the shortcode they will all appear as tabs? i assume the first declared field group will be displayed first.
Nicholas Cox
ParticipantHi
Ok well a while back it was default to keep the form after submission and was changed a while ago due to requests
in the forum e.g. https://support.metabox.io/topic/ajax-hide-form-after-submission/, but it is useful to keep the forms in certain situationsNicholas Cox
Participantok thanks anyway
August 17, 2024 at 6:06 PM in reply to: ✅load the frontend submission form in the wp admin backend #46171Nicholas Cox
ParticipantIts ok i figured it out.
August 17, 2024 at 5:31 PM in reply to: ✅load the frontend submission form in the wp admin backend #46170Nicholas Cox
ParticipantHi Peter,
Ok is there a way to put the form on a hidden page and call it using a iframe? so basically a metabox form form on a hidden php page?
thanks
May 9, 2024 at 10:28 PM in reply to: ✅API::add and error Column 'ID' cannot be null for query INSERT INTO #45419Nicholas Cox
Participantok thanks, so adding
true // Must be true for modelsworked for me, it added the auto increment so will work for me now, thanks.May 8, 2024 at 12:39 AM in reply to: ✅API::add and error Column 'ID' cannot be null for query INSERT INTO #45398Nicholas Cox
ParticipantHi
Ok but the reason i found out after testing to why it dont work with custom tables without registered models is that the database table ID column is not created with auto increment enabled. This is controlled via metabox so i assume there is no pragmatic way to alter this?
when i manually changed the ID column to be auto increment the
\MetaBox\CustomTable\API::addworks ok.thanks
Nick
Nicholas Cox
Participantok thanks
April 9, 2024 at 11:07 PM in reply to: Custom User Register Form - Errors Upon Validation Checks #45185Nicholas Cox
ParticipantHi Peter
I am working on a project locally and do not have it available online yet. Are you unable to replicate it?
Nick
April 9, 2024 at 11:04 PM in reply to: front end submission for post type does not auto refresh permalinks #45184Nicholas Cox
ParticipantHi Peter,
I cannot as im working on a local development project and is not available online.
Its a difficult one to alway replicate, must be something to do with WordPress. I have no cache enabled. I will try and get a video of the issue but the post appears in the database ok, just the 404 when viewing the permalink for the page
Nick
-
AuthorPosts