Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi Harry,
As you can see in the article https://metabox.io/move-custom-post-type-custom-field-data-from-pods-to-meta-box/
the CPT is created manually with Meta Box so you can set the slug toexample-cpt-slug(dashes) as well. If you change the dash to underscore, the posts of the CPT will not display under its menu.Long Nguyen
ModeratorHi Rob,
Can you please share the code that creates the field group on your site? Refer to this documentation https://docs.metabox.io/extensions/meta-box-builder/#getting-php-code
Long Nguyen
ModeratorHi Dragos,
If Zapier works with the normal field of the post, it would work with the custom fields created by Meta Box. You can also ask Zapier support to get/update the field value via Rest API. Following this documentation https://docs.metabox.io/extensions/mb-rest-api/
Long Nguyen
ModeratorHi Timo,
The builder has not supported adding the sub-choices like that. You can use the code to register the select field and sub-choices. I will inform the development team to consider supporting this option in future updates.
Long Nguyen
ModeratorHi,
You can save the product data (field value) to the custom table but WooCommerce has its own procedure to save its own data to the database and display it on the frontend. For example, WooCommerce saves the product meta SKU, Price, Stock Quantity ... to the table
wc_product_meta_lookupSo if you want to do that, you need to create a lot of custom code to save it to your own custom table.
Here are some guides for you
https://www.mootpoint.org/blog/woocommerce-hook-product-updated-added/
https://wordpress.stackexchange.com/questions/334407/get-woocommerce-product-details-and-transfer-them-to-a-custom-db-tableLong Nguyen
ModeratorHi,
There is no option to accentuate an item in the list. You can try to create a new field text list, make it not cloneable, and be required to accentuate it.
April 24, 2022 at 10:03 AM in reply to: How to get PO file use Loco Translate with Label and Description field Metabox #35772Long Nguyen
ModeratorHi,
You need to use the code to register the meta box and custom fields, then use Loco Translate to scan the text (.pot) and start translating. See more here https://support.metabox.io/topic/block-field-lables-not-translatable/#post-35758
Long Nguyen
ModeratorHi Brent,
If you add the code to a file that has an open PHP tag, you need to add a close tag before adding the code
?> //here <?php $value = rwmb_meta( 'my_field_id' ) ?> <?= wpautop( $value ) ?>Long Nguyen
ModeratorHi,
There is no option to do that, but you can use the action hook
rwmb_after_save_fieldto check the field value if it is empty and update a default value. Read more on the documentation https://docs.metabox.io/actions/rwmb-after-save-field/Long Nguyen
ModeratorHi,
I see it works as well on my site, if you want to set the default value for the subfield in clone, please use the setting
clone_default
https://monosnap.com/file/t85mnXYKJ0DRr7htpGMZ7DLzsSLppN[ 'id' => 'block_cross_linking_cards', 'name' => 'Cards', 'type' => 'group', 'clone' => 'true', 'sort_clone' => true, 'collapsible' => true, 'default_state' => 'collapsed', 'group_title' => ['field' => 'block_cross_linking_cards_title'], 'add_button' => '+ Add Card', 'clone_default' => true, //here 'fields' => [ [ 'id' => 'block_cross_linking_cards_style', 'name' => 'Card style', 'type' => 'select', 'options' => [ 'card' => 'Card', 'image-background' => 'Image Background', 'c' => 'C' ], 'std' => 'image-background' //here ], ], ],Read more on this documentation https://docs.metabox.io/extensions/meta-box-group/#clone-default-values
Long Nguyen
ModeratorHi,
Thanks for sharing the documentation.
Following that, the code would be
function add_mbview_script() { global $post; if ( is_a( $post, 'WP_Post' ) && has_shortcode( $post->post_content, 'mbv') ) { wp_enqueue_script( 'my-script'); } } add_action( 'wp_enqueue_scripts', 'add_mbview_script');April 22, 2022 at 8:01 AM in reply to: ✅Clear deleted post types and custom fields from database #35762Long Nguyen
ModeratorHi,
You need to access the database to delete posts and custom fields manually. Or use a third-party plugin to delete them https://wordpress.org/plugins/bulk-delete/
April 22, 2022 at 7:55 AM in reply to: ✅Custom Column means custom field value is unchangable #35761Long Nguyen
ModeratorHi,
I do not see that issue on my end, screen record https://monosnap.com/file/zVMRKBqhM4cXUK0n3OCtMXyjuF7KfL
Please try to deactivate all plugins except Meta Box, MB extensions and switch to the standard theme of WordPress (Twenty TwentyTwo) then re-check the issue.
Long Nguyen
ModeratorHi,
Please check this screen record https://monosnap.com/file/h84LseBijfqofKSWcIC9dzlCG9L5kV
the field label is translated with Loco Translate as well.Long Nguyen
ModeratorHi Ole,
We do not have any intention to do that feature since we have an integration plugin with Admin Columns Pro which has the same feature.
-
AuthorPosts