Forum Replies Created
-
AuthorPosts
-
March 25, 2022 at 3:17 PM in reply to: Difference between mb_user_profile_in and mb_frontend_form ? When to use ? #35292
Long Nguyen
ModeratorHi,
You can read the different on the documentations
https://docs.metabox.io/extensions/mb-frontend-submission/
https://docs.metabox.io/extensions/mb-user-profile/[mb_frontend_form]used to create a form on the frontend that allows users to submit posts
[mb_user_profile_info]used to create a form on the frontend that allows users to edit their profileLong Nguyen
ModeratorHi,
Sorry, as I said above, I've just assigned the field group Event to (default) Post to re-check the issue. Now, assign it back to Event and the relationships still works as well, screen record https://monosnap.com/file/1QNR2s5GewCEbnRHzXWam0oT5dSMaz
So we can confirm it's not the problem with the PHP setting max_input_vars, I see you increase this value to 500k.You can try to deactivate all plugins then activate them one-by-one to find the conflicting plugin.
Regarding the issue with the code on this topic https://support.metabox.io/topic/query-advanced-select-field-by-relationship/, please check it after resolving this issue. Just to make sure MB Relationships works properly.
Long Nguyen
ModeratorHi,
You can use the field type image or image_upload to allow users to upload their avatar but do not access the media library.
Then follow the documentation to get the image URL https://docs.metabox.io/fields/image-upload/#template-usage
Long Nguyen
ModeratorHi,
It looks like there is a conflict between MB Relationships and another plugin or a snippet code on your site. What I've done:
- Deactivate all plugins except Meta Box and MB AIO
- Assign the field group from Event to Post to avoid the issue with the setting max_input_vars (too many inputs when submitting)
- Disable other snippets in the Advanced Script board.Long Nguyen
ModeratorHi Ryan,
Please check this screen record if it works as your expectation?
https://monosnap.com/file/AupgEXyOiCCzkMK0IcdwOmUyKzOwD4Long Nguyen
ModeratorHi,
I've used the plugin Health Check to temporarily deactivate all plugins except Meta Box and Meta Box AIO then I can save more connection items as well. Can you please re-check it?
wp-admin/post.php?post=122&action=editLong Nguyen
ModeratorHi,
You can temporarily disable this extension (or move to trash the relationship) and use the code to register the relationship to re-check this issue. The relationship data is saved to the database so it will not be lost if you disable this extension.
Refer to this documentation https://docs.metabox.io/extensions/meta-box-builder/#getting-php-code
March 24, 2022 at 12:40 PM in reply to: ✅How to trigger an action when a specific option on the settings page is changed #35252Long Nguyen
ModeratorHi,
You can use the filter
rwmb_{$field_id}_valueto modify the value of a specific field.
Or the actionrwmb_{$field_id}_after_save_fieldto do something after saving a specific field.Read more on the documentation
https://docs.metabox.io/filters/#rwmb_field_type_value
https://docs.metabox.io/actions/#rwmb_after_save_fieldMarch 24, 2022 at 12:35 PM in reply to: Problem displaying images, videos and date format in French #35251Long Nguyen
ModeratorHi,
Please enable the option
timestampwhen creating the field to save the date value intimestampformat. Then you can display the value in different formats.
Screenshot https://monosnap.com/file/eAIZ6m5QNJ0N8IFgdaAcoop5IJOArcRead more on the documentation https://docs.metabox.io/fields/datetime/#template-usage
Long Nguyen
ModeratorHi,
Thanks for your additional information.
Looking in your screen record, I see there are many custom fields assigned to that post so I think increasing the setting
max_input_varsto 10000 (10k) is not enough. Can you please increase a larger value (4-500k)?And use this code to save more connection items, currently, the option
query_argsin the builder is not working correctly.add_action( 'mb_relationships_init', 'ec_block1' ); function ec_block1() { MB_Relationships_API::register( [ 'id' => 'event-to-course-relationship', 'from' => [ 'object_type' => 'post', 'post_type' => 'events', 'empty_message' => 'Choose an event', 'field' => [ 'name' => 'From Events to Courses', 'query_args' => [ 'number' => 50 // This ], ], ], 'to' => [ 'object_type' => 'post', 'post_type' => 'course', 'empty_message' => 'Choose a course', 'field' => [ 'name' => 'To Course from Events', ], ], ] ); }March 24, 2022 at 12:19 PM in reply to: ✅Hello how can i make my custom field appear on user registration #35249Long Nguyen
ModeratorHi,
1. Please use this custom CSS code in Appearance > Customize > Additional CSS, to fix the issue with the prepend text. I will inform the development team to fix this issue in the next update.
span.rwmb-input-group-text { width: 10%; justify-content: center; }2. The font size of the description text below the WhatsApp field is controlled by your theme style. You can try to contact theme support to ask to change the font size of this text.
March 23, 2022 at 9:13 PM in reply to: Updating a custom post type post using rwmb_set_meta with a custom table #35242Long Nguyen
ModeratorHi Mike,
Did you try to use the example code to update the field value stored in the custom table?
https://docs.metabox.io/rwmb-set-meta/#examplesadd_action( 'init', function() { $table_name = 'my_table'; $post_id = 123; $field_id = 'my_field'; $value = 'My custom value'; rwmb_set_meta( $post_id, $field_id, $value, [ 'storage_type' => 'custom_table', 'table' => $table_name, ] ); }, 99 );You can also use the public API of MB Custom Table to update field value as well.
https://docs.metabox.io/extensions/mb-custom-table/#api$data = [ 'field_1' => 'value 1', 'field_2' => 'value 2', 'field 3' => ['one', 'two', 'three'], ]; \MetaBox\CustomTable\API::update( $object_id, $table, $data );Long Nguyen
ModeratorHi,
It is beyond the scope of support of MB Frontend Submission. You can try to use Zapier to do that, please follow this link https://zapier.com/apps/slack/integrations/wordpress
March 23, 2022 at 8:37 PM in reply to: Problem displaying images, videos and date format in French #35240Long Nguyen
ModeratorHi,
Please refer to this topic to know how to display other date-time formats on the frontend
https://support.metabox.io/topic/display-custom-date-time-format-on-the-front-end/Long Nguyen
ModeratorHi,
The field
taxonomyortaxonomy_advancedonly supports saving a new term when submitting the post. There is no way to add a new term before. I will inform the development team to explore the possibility. -
AuthorPosts