Forum Replies Created
-
AuthorPosts
-
Peter
ModeratorHello,
It isn't possible to set a relationship between a custom field and a user. You can set a relation between objects only. They are post, user, term.
Please follow the documentation https://docs.metabox.io/extensions/mb-relationships/March 20, 2024 at 9:36 PM in reply to: ✅Why does the Metabox WP Admin Menu Item show up for users without permissions? #44938Peter
ModeratorHello,
Thanks for your feedback.
To quickly fix this issue, please follow this topic https://support.metabox.io/topic/hiding-meta-box-plugin-from-wordpress-dashboard-menu-for-non-admins/#post-27382
I've escalated this to the development team to fix it in future updates.
Peter
ModeratorHello,
>> Is there a way around allowing the visitor to edit a post when not signed in (guest/visitor)?
No, only the post author can edit the post or the administrator/editor if the post is not assigned to them.
March 20, 2024 at 8:48 PM in reply to: ✅Query CPT with CF value stored in custom table (Bricks Query Editor) #44935Peter
ModeratorHello,
If you want to get the post ID by custom field value in a custom table, please use an SQL query. Following the documentation https://docs.metabox.io/extensions/mb-custom-table/#query-posts-with-wp_query
If you want to apply it in the Bricks builder, please contact their support to get more information.
March 20, 2024 at 8:41 PM in reply to: CPT > When checking "Supports > Editor" custom fields disappear #44932Peter
ModeratorHello,
Please share your site credentials via this contact form https://metabox.io/contact/
I will take a look.March 20, 2024 at 8:29 PM in reply to: ✅It's possible to save custom fields only to custom table bypassing wp_posts? #44931Peter
ModeratorHello,
In the builder, you can use the Before and After settings of custom fields to create a wrapper div. Please check this screenshot https://imgur.com/a/Tk9pBXi
If you use the code, please follow the documentation https://docs.metabox.io/field-settings/
Peter
ModeratorHello,
We don't support this kind of topic in this forum which is used to support technical issues. I will close this one.
Thank you.
March 19, 2024 at 9:01 PM in reply to: CPT > When checking "Supports > Editor" custom fields disappear #44917Peter
ModeratorHello,
Please edit the field group > Settings tab > Position: select After content > Save. If you use the code to register the meta box, please set
contexttonormal.
Following the documentation https://docs.metabox.io/creating-fields-with-code/
and screenshot https://imgur.com/1W4vKgVLet me know how it goes.
Peter
ModeratorHello,
I will inform the development team to consider supporting a filter hook to customize the group title in future updates.
Thank you.
March 19, 2024 at 8:39 PM in reply to: ✅It's possible to save custom fields only to custom table bypassing wp_posts? #44914Peter
ModeratorHello,
Currently, the custom model doesn't work with frontend submission form. You can create the model entries in the admin area.
Peter
ModeratorHello,
Does it work on your site?
Peter
ModeratorHello,
According to this code https://pastebin.com/ZDcDxd0S I see the custom fields are associated with a settings page, so the field value will be saved to the table
wp_options. Please follow the documentation
https://docs.metabox.io/extensions/mb-settings-page/Regarding the "meta_box" key in the table wp_postmeta, it's the data of the field group post, post type
meta-box.Peter
ModeratorHello Diego,
Please update WordPress core to the latest version 6.4.3 and check this issue again.
Peter
ModeratorHello Bomes,
There isn't a filter hook to change the group title. The subfield value in the group title will display the original that is saved to the database.
Peter
ModeratorHello Nick,
It is possible to adjust the field value before displaying it in the editing form. You can use the filter hook
rwmb_{$field_id}_field_metato hook the callback function to a specific field.The subfield in a cloneable group will have a structure like this
Array ( [0] => Array ( [text_field_id] => test text 1 ) [1] => Array ( [text_field_id] => test text 2 ) )then you can change the text field value in the group with the code:
add_filter( 'rwmb_groupFieldID_field_meta', function( $value, $field, $saved ) { $value[1]['text_field_id'] = 'adjust the second text field value'; return $value; }, 10, 3);Following the documentation https://docs.metabox.io/filters/rwmb-field-meta/
-
AuthorPosts