Forum Replies Created
-
AuthorPosts
-
November 13, 2023 at 9:55 PM in reply to: File Upload, how to display in elementor met group skin template and download it #43801
Peter
ModeratorHello Chris,
You can create your own shortcode and add it to the Elementor builder. Or use the Meta Box shortcode to create a downloadable link. For example:
[rwmb_meta id="file_upload_id"]Following the documentation https://docs.metabox.io/shortcode/
Peter
ModeratorHello,
You can use custom JavaScript code to disable scrolling on the number field. Refer to this topic
https://stackoverflow.com/questions/9712295/disable-scrolling-on-input-type-number
and this snippet code
https://codepen.io/ahastudio/pen/eVovMvPeter
ModeratorHello Joe,
What happens if you remove the relationship code and its loop? Do you use the function
get_the_author_meta()in a loop? If not, you have to add the user ID as the second parameter of this function.
Following the WordPress documentation https://developer.wordpress.org/reference/functions/get_the_author_meta/Peter
ModeratorHello,
Yes, you have to use JS code to do something when clicking a button without reloading the page.
November 12, 2023 at 8:42 PM in reply to: How to validate just the value in a key_value pair? #43793Peter
ModeratorHello,
Yes, it will work like that (both questions). Let me know if it does not work.
Peter
ModeratorHello,
Thanks for your feedback.
I can reproduce the issue on my site. I've escalated this issue to the development team to fix it. I will let you know when I have any information.
November 10, 2023 at 10:28 PM in reply to: How to validate just the value in a key_value pair? #43784Peter
ModeratorHello Phil,
I'm afraid that it isn't possible. Both key and value are the field data and you can get the field data, extract the key or value from the array and validate one of them. The submitted data has the format:
[key_value_crx6rkqqts] => Array ( [0] => Array ( [0] => test key [1] => test value ) )Peter
ModeratorHello,
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
Peter
ModeratorHello,
I see you send the same user and password as before. Can you please double-check the account before sharing it?
Peter
ModeratorHello,
I see there are 3 errors in your code:
1. Use the name or ID of the settings page, it must be the option name.
2. Missing the close single quote for the first argument.
3. The dash character "object-type" in the fourth argument must be underscore.
add_action( 'init', function() { rwmb_set_meta( 'option_name', 'my_field', 999, ['object_type' => 'setting'] ); }, 99 );Following the documentation https://docs.metabox.io/extensions/mb-settings-page/
https://docs.metabox.io/functions/rwmb-set-meta/how can this then be implemented to fire after clicking a button (metabox field)?Is the page reloaded after clicking on the button? If not, you should use a JS code with Ajax call. If yes, you can try to hook the callback function to the action save_post.
Peter
ModeratorHello,
The user or password is incorrect. Can you please recheck this?
November 8, 2023 at 10:07 PM in reply to: ✅Some Custom Fields Not Saving after WP/MB Update (not max_input_vars issue) #43771Peter
ModeratorHello,
Thanks, I see it works with MB AIO version 1.20.2. I've escalated this issue to the development team to take a look. I will get back to you later.
November 8, 2023 at 6:25 PM in reply to: how to copy the php of settings pages, custom post types and custom fields #43770Peter
ModeratorHello,
With the custom fields and custom post types, you can use the free version of Meta Box. With the settings page, if you use the code, you still need to have the plugin MB Settings Page activated. Following the documentation https://docs.metabox.io/extensions/meta-box-builder/#getting-php-code
And currently, it isn't possible to have a Lifetime license for 1 site only.
November 8, 2023 at 3:50 PM in reply to: ✅Call of /wp-admin/user-edit.php leads to Fatal error #43769Peter
ModeratorHello,
Thanks for your details. It happens with PHP 8+ version. I will inform the development team to improve this case in future updates.
Peter
ModeratorHello,
The field group looks corrupted, the
fieldsproperty in the JSON file is empty. I also import the JSON file to my demo site and do not see any fields. You can try to re-create the fields with the same IDs to continue managing them.How would this be possible ?
I'm not sure. But there is a case that you click on the Update button in the field group, while the fields are loading and not displayed and you click on the Update button again, all fields will lost.is there a way to regenerate from the database setup?
If you have a backup file from the point before the issue occurs, you can try to restore it. -
AuthorPosts