Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
Thanks for your feedback.
HTML5 also supports field type
telaka phone number. You can use it as a custom field type. Please read more here https://docs.metabox.io/html5-input-types/May 4, 2022 at 12:55 PM in reply to: How can I get wordpress to get the publish date from a custom field? #35866Long Nguyen
ModeratorHi Robert,
WordPress itself also supports a function to get the published date of a post. Please read more here https://developer.wordpress.org/reference/functions/get_the_date/
Long Nguyen
ModeratorHi,
The frontend submission extension requires the user to log in to submit a post so it's not possible to upload the image without logging in. You can log in with a test user (subscriber or editor role) to re-check this issue.
May 3, 2022 at 9:44 AM in reply to: How to change the format of "Date Picker" output via PiotnetGridBuilder? #35856Long Nguyen
ModeratorHi Sascha,
Did you try to use the code to output the field value and check if it works correctly? The setting
save_formatshould bed.m.YLong Nguyen
ModeratorHi,
The relationship works like a meta box connection, it saves data in the custom table and it is not a post type so it does not work with the Rest API. You can use the field
postto create the related posts, it works similarly with the relationship.
https://docs.metabox.io/fields/post/May 3, 2022 at 9:15 AM in reply to: Blocks created with MB Blocks are not available in the WordPress site editor. #35853Long Nguyen
ModeratorHi,
Thanks for your feedback.
Our development team is working to make the MB Blocks compatible with the site editor (FSE). Hopefully, it will be available soon.
Long Nguyen
ModeratorHi,
Image fields of Meta Box save image IDs as field values in the database so you need to upload images to the media first then update the field value via Rest API.
Read more on the documentation https://docs.metabox.io/fields/image-advanced/#dataLong Nguyen
ModeratorHi Thomas,
Thanks for your feedback.
This issue has been fixed on this commit https://github.com/wpmetabox/meta-box/commit/d275047c1e4eae25e5887f0323dcee21536509d1
You can download it to your local site and re-check this issue.Long Nguyen
ModeratorHi,
It works as well on my local site, please check this screen record https://monosnap.com/file/33zS6ArE3QpKkSKAC2m06os1nYlpvJ
Long Nguyen
ModeratorHi,
There is no limit to cloning a field or a group. It depends on the PHP settings on your hosting. Refer to this topic https://support.metabox.io/topic/number-field-limits-for-field-group
and this article https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/Long Nguyen
ModeratorHi,
Please try to deactivate all plugins except Meta Box, MB extensions and switch to the standard theme of WordPress (Twenty TwentyTwo) then re-check this issue.
Long Nguyen
ModeratorHi,
The object ID is set to null and uses the auto-increment number of the column ID in the custom table so I think it will not work when you use the custom model. I will inform the development team to check this case and get back to you later.
Long Nguyen
ModeratorHi,
The View type is Shortcode, so you need to add the shortcode to the post content to display the field value. After disabling the plugin Oxygen, the value displays on the post as well, screenshot https://monosnap.com/file/kJEGxEZ8WYFkTla65PmQvMAq4DT45c
April 29, 2022 at 12:36 PM in reply to: ✅autofill a select custom field with a custom field from another group. #35825Long Nguyen
ModeratorHi,
There are two notes in this case:
1. The callback function should return an array of values and labels as setting
optionsfunction my_custom_options() { $options = [ 'java' => 'Java', 'javascript' => 'JavaScript', 'php' => 'PHP', ]; return $options; }register the field select
[ 'name' => 'Select', 'id' => 'select', 'type' => 'select', 'multiple' => true, 'placeholder' => 'Select an item', 'select_all_none' => true, 'options' => my_custom_options(), ],2. The helper function
rwmb_meta()runs after the filter hookrwmb_meta_boxesso it does not work with the callback function. You can use the functionget_post_meta()to get field value inside the function callback.Refer to this topic https://support.metabox.io/topic/bug-settings-not-available-for-custom-fields
Long Nguyen
ModeratorHi Will,
What is the code that you are using to use the $object_id? I've tested this action with a callback function and it displays the object ID as well.
add_action( 'mbct_after_update', function( $object_id, $table, $row ) { echo "Object ID is: " . $object_id . '<br>'; die( 'Stop here!' ); //for debug }, 10, 3);And make sure that you have the latest version of MB Custom Table 2.1.1.
-
AuthorPosts