Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
It might be located in a plugin or the theme. You can follow the steps above to find where it is located.
Long Nguyen
ModeratorHi Richard,
Does the revision work with other custom fields? You can also try to define the key
WP_POST_REVISIONSin the file wp-config.php to make the revision works. Follow this documentation https://docs.metabox.io/extensions/mb-revision/#notesLong Nguyen
ModeratorHi,
Yes, it is possible. You can add the post ID to the custom upload dir when registering the
filefield. For example:add_filter( 'rwmb_meta_boxes', 'your_prefix_function_name' ); function your_prefix_function_name( $meta_boxes ) { $post_id = null; if ( isset( $_GET['post'] ) ) { $post_id = intval( $_GET['post'] ); } elseif ( isset( $_POST['post_ID'] ) ) { $post_id = intval( $_POST['post_ID'] ); } $meta_boxes[] = [ 'title' => __( 'Post Meta', 'your-text-domain' ), 'id' => 'post-meta', 'fields' => [ [ 'name' => __( 'File', 'your-text-domain' ), 'id' => 'file', 'type' => 'file', 'upload_dir' => WP_CONTENT_DIR . '/' . $post_id . '/invoices/', ], ], ]; return $meta_boxes; }Long Nguyen
ModeratorHi,
1. I don't know a way to sort the sub-settings page automatically like that. You can try to create a topic on WordPress.org support forum to ask for help of other developers.
https://wordpress.org/support/forum/how-to-and-troubleshooting/2. WordPress also does not support adding the position for CPT that displays under a menu page. Please read more on the documentation https://developer.wordpress.org/reference/functions/register_post_type/#menu_position
3. If you want to display the CPT menu as a submenu under a Settings page topmenu, please use the setting
show_in_menu. The builder of Meta Box also supports this option.Long Nguyen
ModeratorHi,
The
inithook does not support passing the post ID to the callback function, please read more here https://developer.wordpress.org/reference/hooks/init/You can try to use the hook
save_postto use the updated post ID in the callback function.
https://developer.wordpress.org/reference/hooks/save_post/Long Nguyen
ModeratorHi,
You can try to deactivate all plugins except Meta Box and switch to the standard theme of WordPress (Twenty TwentyTwo) and recheck the field if it is still available. Then please activate plugins one by one and switch to your current theme to see where the field is registered (with code).
Long Nguyen
ModeratorHi Scott,
The type "Custom" is removed, you can use the type "Shortcode" to dynamically add the view shortcode to another view content.
Long Nguyen
ModeratorHi,
You can use public APIs of MB Custom Table to add/update values of custom fields in the custom table, please read more on the documentation https://docs.metabox.io/extensions/mb-custom-table/#api
Long Nguyen
ModeratorHi Daniel,
You can use the option
positionwhen registering the settings page (with code) to sort the settings page and sub-pages. Please read more on the documentation https://docs.metabox.io/extensions/mb-settings-page/#using-codeLong Nguyen
ModeratorHi,
Unfortunately, due to a large number of feature requests, I cannot commit to any specific timelines for the release of the compatibility feature. Hopefully, it will be available soon.
Long Nguyen
ModeratorHi,
You can go to WPML > String Translation > Click on "Translate texts in admin screens" > Search for option name (which is saved to the table wp_options) and add fields to the String Translation. See my screenshots
https://monosnap.com/file/hVk77kUlR9GYw8YCqV5AI7kqCxbrZB
https://monosnap.com/file/7HDQZFeiZE4n739LkiMwxg4y6XCLjL
https://monosnap.com/file/u7X0u5Ucf6jFDiHWDgvO0mnRkWabCaYou can also contact WPML support to ask for more details.
Long Nguyen
ModeratorHi,
Currently, WPML is not compatible with the cloneable group. I will inform the development team to consider supporting this feature in future updates.
August 5, 2022 at 10:39 AM in reply to: ℹ️How to target a MeTABOX custom field attached to a Woo product #37367Long Nguyen
ModeratorHi,
You can try to add the custom code to the file functions.php in a theme folder after deactivating Oxygen and other plugins then see if it works.
Long Nguyen
ModeratorHi,
If you are using the builder, you can see the option name when editing the settings page, screenshot https://imgur.com/0boG3lD
Long Nguyen
ModeratorHi Daniel,
The correct shortcode to get the field value in a settings page should be (you miss the attribute object_type)
[rwmb_meta id="phone" object_id="site_option" object_type="setting"]phoneis the field ID
site_optionis the option name, not the settings page IDPlease read more on the documentation https://docs.metabox.io/shortcode/
https://docs.metabox.io/extensions/mb-settings-page/ -
AuthorPosts