Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
You can use the helper function rwmb_meta() via the proxy
mbto get the field value from the settings page.{{ mb.rwmb_meta( 'field_id', {object_type: 'setting'}, 'option_name' ) }}Get more details here https://docs.metabox.io/extensions/mb-settings-page/#getting-field-value
Long Nguyen
ModeratorHi,
I've not used them before but I think these plugins might fit your requirement
https://wordpress.org/plugins/user-export-with-their-meta-data/
https://wordpress.org/plugins/import-users-from-csv-with-meta/Long Nguyen
ModeratorHi Viktor,
You just need to assign the Type to Shortcode. Then each time you add the shortcode in a post, the helper function rwmb_meta() will take the current post/page ID to pass to the third argument
{{mb.rwmb_meta( 'field_id' )}}Get more details on the documentation https://docs.metabox.io/rwmb-meta/#arguments
Long Nguyen
ModeratorHi,
Thank you for reaching out.
How the key pairs relate to the meta boxes, 4 field types, and random value? Can you please give an example?
Long Nguyen
ModeratorHi Kirb,
Can you please share some screenshots of the View and clarify the questions? I understand that the field
dish_nameanddish_pricebelong to the post type Dish, and you want to show it on another post type page?July 9, 2021 at 10:57 AM in reply to: ✅Add extra custom fields together with MB relation select #29389Long Nguyen
ModeratorHi,
No, it's not possible. The Relationships extension only supports adding/selecting the related posts, not add anything with that posts.
July 8, 2021 at 9:13 PM in reply to: ✅Title, excerpt, featured image of related CPT not as an option? #29380Long Nguyen
ModeratorHi,
To show the relationship in View, please follow this documentation https://docs.metabox.io/extensions/mb-views/#relationship-fields
and refer to these topics
https://support.metabox.io/topic/relationship-cpt-title-not-displaying-using-mb-view-shortcode/
https://support.metabox.io/topic/query-in-relationship-post-per-page/Long Nguyen
ModeratorHi,
You can try to use this code to hide the update notice
add_action('admin_head', function() { if(!current_user_can('manage_options')){ remove_action( 'admin_notices', 'update_nag', 3 ); remove_action( 'admin_notices', 'maintenance_nag', 10 ); } });Follow on this topic https://wordpress.stackexchange.com/questions/231010/remove-update-nags-for-non-admins
Long Nguyen
ModeratorThanks for your feedback. The testing code has been removed in the new version of Meta Box.
Long Nguyen
ModeratorHi,
This issue has been fixed in the new version of Meta Box, please update it.
Long Nguyen
ModeratorHi,
Please refer to this article https://deluxeblogtips.com/wordpress-change-meta-box-location/
and this topic https://support.metabox.io/topic/preserve-admin-order-of-metaboxes-in-the-frontend-of-the-website/July 8, 2021 at 12:29 PM in reply to: ✅passing variable table name to MB_Custom_Table_API::create #29359Long Nguyen
ModeratorHi,
It is the wrong syntax when creating a function inside a function like that. You can change the code to this one
class Housekeeping { private $wpdb; private $table; public function __construct() { global $wpdb; $this->wpdb = $wpdb; $this->table = $wpdb->prefix . 'dc_housekeeping'; add_action( 'init', array( $this, 'createHousekeepingTable' ) ); } public function createHousekeepingTable() { MB_Custom_Table_API::create( "{$this->table}", array( 'type' => 'VARCHAR(20) NOT NULL', 'date' => 'DATETIME NOT NULL', 'action_date' => 'DATETIME NOT NULL', 'log' => 'VARCHAR(255) NOT NULL' ) ); } } $housekeeping = new Housekeeping();Refer to this topic https://stackoverflow.com/questions/1725165/calling-a-function-within-a-class-method
July 7, 2021 at 9:39 PM in reply to: ✅The subfields first_name and last_name cannot be saved. #29353Long Nguyen
ModeratorHi,
No, the setting
classwhen registering the field will add custom class to the classrwmb-field, screenshot https://share.getcloudapp.com/bLukQpjp[ 'name' => __('Display Name', 'your-text-domain'), 'id' => $prefix . 'display_name_', 'type' => 'text', 'required' => true, 'attributes' => [ 'placeholder' => 'ご担当者名 名', ], 'class' => "my-custom-field-class" ],Then you can the custom class as a selector to track the input.
.my-custom-field-class #field-IDLong Nguyen
ModeratorThanks, I'm going to update the documentation.
Long Nguyen
ModeratorHi,
Thanks for your feedback.
I've informed the development team to re-check the new style of the input box. I will get back to you if I have any information.
-
AuthorPosts