Forum Replies Created
-
AuthorPosts
-
November 14, 2025 at 4:59 PM in reply to: Radio field Choices Callback Function no longer working #49333
Macky McCormack
ParticipantHi Peter,
Regarding the text field - the screenshot is from the metabox field group settings page. The field needs to be required when the post edit form is rendered, but NOT on the metabox field group edit screen.
I will provide admin login so you can take a look. The metabox field group in question is wp-admin/post.php?post=9485&action=edit
November 13, 2025 at 10:59 PM in reply to: Radio field Choices Callback Function no longer working #49328Macky McCormack
ParticipantEDIT - I didn't resave the field group before my last post. When I try to do so it acts as if one of the fields is required...
November 13, 2025 at 10:31 PM in reply to: Radio field Choices Callback Function no longer working #49326Macky McCormack
ParticipantHey Peter,
I have done as you ask and deactivated the script in Advanced Scripts, but the issue remains.
Macky McCormack
ParticipantAh I see - I'll give that a try.
Thanks
Macky McCormack
ParticipantHi Peter,
Yes I have seen the post that you're referencing - thats not a solution but it does outline the need update the field group after the callback function has been updated - which is exactly what I'm trying to do.
RE rwmb_normalize_field - can you let me know who this will help, and how to use it in this case?
Thanks
Macky McCormack
ParticipantHey Peter,
I just need to updated the field group - equivalent to being in the edit screen for the field group and clicking 'Update'. This is to register changes that are made to a callback function that populated options in a select field.
I have a similar set up for CPTs that works fine, but its not working for the field group.
Thanks
December 11, 2022 at 5:26 PM in reply to: ✅CPT Edit Metabox appearing in Edit Field Group page #39686Macky McCormack
ParticipantHey Peter,
It's ok I fixed. The issue was that in 'Edit Field Group' admin page in settings tab, there was no post type in the 'Location' value field. This was causing the metabox to appear on the Edit Field Group page for every custom field group set up on the site.
Cheers,
Macky
November 23, 2022 at 10:18 PM in reply to: ✅update_post_meta for cloneable fields in a group. #39292Macky McCormack
ParticipantHi Peter,
Thanks for your help, this worked
Macky McCormack
ParticipantI'll move to a new post as this is marked resolved
Macky McCormack
ParticipantHi, I submitted this a week ago, could you have a look and help me out?
Thanks
Macky McCormack
ParticipantHi Peter,
Thanks but as I said in the op the <br> tags dont work in this case.
I'll try and find another solution.
Cheers,
Macky
Macky McCormack
ParticipantHi Peter,
The front end is not the issue, I want to display the info with line breaks on the post edit page.
Is there a way to do this? Info is read only so doesn't have to use the text area field.
Thanks
Macky McCormack
ParticipantEDIT - I've checked the DB and the serialised array is present in the wp_postmeta table
Macky McCormack
ParticipantHi,
I'm trying to get this to work but for some reason its not. Here's my fields
$meta_boxes[] = [ 'title' => __( 'Order Details', 'your-text-domain' ), 'id' => 186, 'post_types' => ['fr_order'], 'style' => 'seamless', 'fields' => [ [ 'name' => __( 'Guest Names', 'your-text-domain' ), 'id' => $prefix . 'fr_guest_names', 'type' => 'group', 'fields' => [ [ 'name' => __( 'Guest Name', 'your-text-domain' ), 'id' => $prefix . 'fr_guest_name', 'type' => 'text', 'clone' => true, ], ], ], ];and here's my code for updating:
$post_meta = Array ( [0] => Array ( [fr_guest_name] => Amet tempor nisi ) [1] => Array ( [fr_guest_name] => Condimentum a ) [2] => Array ( [fr_guest_name] => Mollis sed posue ) [3] => Array ( [fr_guest_name] => Arcu a eget euis ) ) update_post_meta($order_id, 'fr_guest_names', $post_meta);The post has already been created and the $order_id is the wp post id.
I get a meta ID returned from the update_post_meta function but the names don't show up in the admin area:
https://www.dropbox.com/s/luoigwe59tqzq3x/metaboxclonablegroup.JPG?dl=0
Can you help?
Macky McCormack
ParticipantThanks I'll have a look at those
-
AuthorPosts