Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
Please send your site info via the ticket system, I will help you to check the issue.
Long Nguyen
ModeratorHi,
The problem happens because the meta box
Program v1is enabled by default in the Screen Options box. You can see the meta boxProgram v2is disabled by default and it works when selecting the API version.So please disable the meta box
Program v1in Screen Options > Save post and re-check this issue.Long Nguyen
ModeratorHi,
I've issued you a full refund. Let me know if you have any questions.
February 18, 2022 at 5:04 PM in reply to: ✅How to translate custom field labels for different admin users languages ? #33982Long Nguyen
ModeratorHi,
I'm not sure. Can you please share the code that you run on your site? I've just removed it to test. You can generate the standard code from Online Generator or Builder to translate.
Long Nguyen
ModeratorHi,
I think it could be done with some steps:
- Make sure that register the correct group field and subfield.
- Create a function that hooks to the action after saving post likesave_post
- This function will take the field value and assign it to a group ID array
- serialize data and update the fieldgroupvalueHere is a sample code
add_action( 'save_post', function( $post_id ) { $group = array(); $field_id1 = rwmb_meta( 'field_id1', '', $post_id ); $field_id2 = rwmb_meta( 'field_id2', '', $post_id ); $group['field_id1'] = $field_id1; $group['field_id2'] = $field_id2; $group_serialize = maybe_serialize( $group ); rwmb_set_meta( $post_id, 'group_id', $group_serialize ); } );Refer to the documentation https://docs.metabox.io/extensions/meta-box-group/#getting-sub-field-values
https://docs.metabox.io/rwmb-set-meta/February 18, 2022 at 12:22 PM in reply to: ✅Oxygen builder: Displaying a related posts field in a repeater #33977Long Nguyen
ModeratorHi Mark,
To display the connected posts with coding, you can follow this documentation https://docs.metabox.io/extensions/mb-relationships/#getting-connected-items
In case of using Oxygen Builder, please reach out to them if you have any issues with installation, configuration, compatibility, or usage.
Refer to our support policy https://support.metabox.io/topic/support-policy/Long Nguyen
ModeratorHi Cees,
You can use the validation to validate the
dateinput. Please read more on the documentation https://docs.metabox.io/validation/Long Nguyen
ModeratorHi,
There is an issue in this case. Please don't mark this field as required if you allow the user to create new terms when editing the post. I've escalated this issue to the development team to find a way to fix it.
Long Nguyen
ModeratorHi,
I think you can create a condition to check the area that you want to show the options, like admin area
is_admin()or something else.$posts_options = array(); if( is_admin() ) { $args_query = array( //... ); // The Query. }February 17, 2022 at 1:06 PM in reply to: Media Post Parent Not Attached On CPT With Certain Field Types #33957Long Nguyen
ModeratorHi,
Thanks for getting in touch.
I've made a short screen record to test with two field types
file_uploadandvideo
https://monosnap.com/file/3JgsffGCssTcJwjgHWsEAQqi8gOPhjThe problem is, the field has the setting
'multiple' => truewill save the attachment IDs in the database following the formatID1, ID2, ID3, ...and it might not work as thesingle_imagefield which saves only one attachment ID like the standard fieldfeatured image. That means the second file uploaded will not be attached to the post as on my testing case.I see you are using the WP function
get_attached_media()to get the media attached to the post, and you can use the helper functionrwmb_meta()instead of this function to get the media (attachment) ID. Read more on the documentation https://docs.metabox.io/fields/file-upload/#template-usageLong Nguyen
ModeratorHi Tim,
We have an extension Meta Box - Elementor Integrator which supports pulling post meta from Dynamic tags of Elementor. Please read more here https://metabox.io/plugins/mb-elementor-integrator/
But it only supports top fields, for the subfields in a group, you need to use the shortcode to show the field value. Get more details on this documentation https://docs.metabox.io/extensions/meta-box-group/#outputing-group-with-page-builders
February 17, 2022 at 12:23 PM in reply to: Multiple PDF uploads in group on a page > Show last one on frontend #33955Long Nguyen
ModeratorHi,
With the code, you can use the function array_pop() to get the latest file to show.
https://www.php.net/manual/en/function.array-pop.phpRefer to this documentation https://docs.metabox.io/fields/file-advanced/#template-usage
In case of using Oxygen Builder, please reach out to them if you have any issues with installation, configuration, compatibility, or usage.
Refer to our support policy https://support.metabox.io/topic/support-policy/February 17, 2022 at 11:26 AM in reply to: Create a new CPT entry on a submit from other FORM #33954Long Nguyen
ModeratorHi Marco,
You can create a function hook to the action
rwmb_after_save_postand use some functions below:- Create a new post with WP function
wp_insert_post(), it will return the new post ID
https://developer.wordpress.org/reference/functions/wp_insert_post/ - Use MB public API
updateto update the post meta to the custom table based on the new post ID
https://docs.metabox.io/extensions/mb-custom-table/#update
February 17, 2022 at 11:18 AM in reply to: ✅Group Index starting by 4 rather than 1 in group title #33953Long Nguyen
ModeratorHi Kevin,
Currently, it is not possible to mark the index starting from 4 or another number. I will inform the development team to explore the possibility.
February 17, 2022 at 10:27 AM in reply to: ✅How to translate custom field labels for different admin users languages ? #33952Long Nguyen
ModeratorHi,
Can you please check the word
User Meta 2added to the theme? It is translated as well. - Create a new post with WP function
-
AuthorPosts