Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
The code that creates the custom table looks like this
add_action( 'init', 'prefix_create_table' ); function prefix_create_table() { if ( ! class_exists( 'MB_Custom_Table_API' ) ) { return; } MB_Custom_Table_API::create( 'my_custom_table', array( 'address' => 'TEXT NOT NULL', 'phone' => 'TEXT NOT NULL', 'email' => 'VARCHAR(20) NOT NULL', ) ); }Please refer to this documentation https://docs.metabox.io/extensions/mb-custom-table/#creating-custom-tables
Long Nguyen
ModeratorHi,
Meta Box does not support deleting a field value after you delete a post. It is not how WordPress post works. You can refer to this topic to delete a field value with coding.
https://support.metabox.io/topic/delete-all-media-images-linked-to-post-type-using-front-end-form-2/Long Nguyen
ModeratorHi Thomas,
You can create setting pages in the Network Area to use for all subsites. But the custom post types and custom fields are not supported like that. You have to create for each site manually.
Or you can export to a
jsonfile and import to other sites. Please read more here https://docs.metabox.io/extensions/meta-box-builder/#export--importLong Nguyen
ModeratorHi Thomas,
Yes, it is possible. But you need to use the code to output the field value to the area where you show the site title.
Please read more on the documentation https://docs.metabox.io/extensions/mb-settings-page/#getting-field-value
Long Nguyen
ModeratorHi,
Please refer to this topic https://support.metabox.io/topic/calculation-in-fields-success-error-messages-jquery-version/
to create a calculation field with jQuery.September 26, 2021 at 4:45 PM in reply to: How to show time ago date format in Meta Box Views #30964Long Nguyen
ModeratorHi,
Can you please share the code that creates the custom fields on your site?
September 26, 2021 at 4:43 PM in reply to: create a print function for woocommerce greeting message #30963Long Nguyen
ModeratorHi,
I'm afraid it is beyond the support of Meta Box. Meta Box doesn't handle all the WooCommerce forms. The plugin works only with fields that are created by Meta Box. You can use another plugin that supports customize WooCommerce checkout form https://wordpress.org/plugins/woo-checkout-field-editor-pro/
Long Nguyen
ModeratorHi,
Please share your site credentials via this contact form https://metabox.io/contact/ and details of the code that you are using. I will help you to check the issue.
September 26, 2021 at 3:33 PM in reply to: ✅frontend form shortcode to exclude certain custom fields #30961Long Nguyen
ModeratorHi,
You can use the extension MB Conditional Logic to show/hide a field based on the page ID. Please read more on the documentation https://docs.metabox.io/extensions/meta-box-conditional-logic/
Long Nguyen
ModeratorHi,
Please refer to this topic to use the
srcsetattribute in View https://support.metabox.io/topic/generating-srcset-code-in-views-twig/Long Nguyen
ModeratorHi,
Please open the Console tab in the Inspect tool of the browser to check if there is a JavaScript error message like your first post. It is possible that there is a problem with your API key.
September 25, 2021 at 3:24 PM in reply to: Get Image Src (URL) from Text Field and Set Featured Image #30943Long Nguyen
ModeratorHi,
It just likes the code in the topic on WordPress.org forum https://wordpress.org/support/topic/how-to-write-php-code-in-twig/
{% if( mb.is_singular( 'app' ) and mb.rwmb_meta( 'app_img_link' ) == 'your-img-link' %} [mbv name="apps-thumb"] {% endif %}Long Nguyen
ModeratorHi Piero,
Can you please share the code that creates the custom table? I do not see any issue with your code on my end.
Long Nguyen
ModeratorHi,
Here is the screen record https://imgur.com/DvVuwur
September 24, 2021 at 12:51 PM in reply to: How to show time ago date format in Meta Box Views #30934Long Nguyen
ModeratorHi,
To run a PHP function in View, you can add the proxy
mb.before the function name. For example:{{ mb.human_time_diff( post.datetime ) }}Please read more on the documentation
https://docs.metabox.io/extensions/mb-views/#running-php-functions
https://developer.wordpress.org/reference/functions/human_time_diff/ -
AuthorPosts