Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello Fabio,
If the custom field "data_ora_inizio" saved value in a custom table, it isn't possible to order or get posts by that field value.
To get posts by custom fields in the custom table, you need to make an extra query to get the post IDs first. Then use these IDs to get full post objects.
Or get field value by a given post ID.Read more in the documentation
https://docs.metabox.io/extensions/mb-custom-table/#query-posts-with-wp_query
https://docs.metabox.io/extensions/mb-custom-table/#getting-field-valuePeter
ModeratorHello,
If you are using an MB custom block, then try to apply the fix in this commit
https://github.com/wpmetabox/meta-box/commit/2635f09fc634ce830a6c9d7e1164f86f26546a4cLet me know how it goes.
Peter
ModeratorHello Klaus,
How do you add/update the field value on the settings page? Do you use a custom code to do that? Please let me know more details of your case.
Peter
ModeratorHello Jack,
I see the conditional logic does not work from the second cloneable group field "Data Table". If I set the sub-group field "Table Rows" to not cloneable then the conditional logic works properly.
Can you please confirm this?
Peter
ModeratorHello,
Does the returned data from API have the format
'value' => 'Label'like the static data? Also, the value should be in lowercase, with no special characters. Read more in the documentation https://docs.metabox.io/fields/autocomplete/#settingsPeter
ModeratorHello,
You can create a
textfield (top field, not a subfield in a group) for the user with the field iduser_id> enable admin column for this field > edit a user > just click on Update user.
Then you will see the user ID field value displayed in the admin column (user management page).Peter
ModeratorHello,
Thanks for your feedback.
I've escalated this issue to the development team to fix it in the next update.
October 10, 2023 at 9:34 PM in reply to: How to sum the point fields of all arrays, theme php code #43488Peter
ModeratorHello,
You can use two PHP functions array_push() and array_sum() to sum the number field value in a cloneable group. For example:
$groups = rwmb_meta( 'group_point', [ 'object_type' => 'user' ], get_current_user_id() ); $total_points = []; foreach ( $groups as $key => $group ) { // Field number_point: array_push( $total_points, $group[ 'number_point' ] ); } echo array_sum( $total_points );October 10, 2023 at 9:11 PM in reply to: ✅From user to post not handling more that 10 connections #43487Peter
ModeratorHello,
You can use the option "Query args" in the builder to add the
numberquery args, screenshot https://monosnap.com/file/Krlq1sXWeCb0Xz3XPq9GjewcPXF237Read more in the documentation https://docs.metabox.io/extensions/mb-relationships/#using-meta-box-builder
Peter
ModeratorHello there,
Please check if some fields in the error message are available on your site or are in a group field: single_image_s62x74iq9cr, text_zz4zq41myna
Peter
ModeratorHello,
You can use the PHP code to check if the query var
rwmb_frontend_field_post_idis available and output a custom CSS code to hide the submit button. For example:add_action( 'rwmb_frontend_before_submit_button', function() { if( isset( $_GET['rwmb_frontend_field_post_id'] ) ) { ?> <style type="text/css"> .mbfs-form .rwmb-form-submit { display: none; } </style> <?php } });October 9, 2023 at 9:55 PM in reply to: ✅content of text fields fields disappears, can't edit custom fields #43470Peter
ModeratorHello,
1. You can check the option "Save field value" if it is disabled. If yes, please enable it and recheck this issue. See this screenshot https://monosnap.com/file/boUvSTyR4Kmm5Ls0wmDiELKehY7Lkb
2. You can click on the white-space area to collapse/reveal each field. Hovering over each element will display the description when you click on it. Screenshot
https://monosnap.com/file/SQ3QMIVocN7AYJxV1KJ7osQzA42noxOctober 9, 2023 at 9:34 PM in reply to: ✅differentiate type=text and type=taxonomy when using the same id #43469Peter
ModeratorHello,
If you have two fields with the same IDs on one editing page, the second field value will be saved and the first one will display the value of the second field. It is expected and we've also noted in the documentation https://docs.metabox.io/field-settings/
ID id Field ID. Required and must be unique.
You should have different field IDs for text and taxonomy fields.
October 9, 2023 at 6:42 PM in reply to: ✅pattern validation for all small text, smalltext with prefix #43466Peter
ModeratorHello,
You can refer to this topic to get the pattern to validate the domain input.
https://stackoverflow.com/questions/58070841/pattern-in-html5-input-type-url-validationPeter
ModeratorHello,
I run your code on the local host and see the new field value is added to the database as well. If you want to display the field, please create a new field in the field group with the same ID.
-
AuthorPosts