Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
The meta box ID and field ID shouldn't be the same. You can try to change the meta box ID to another ID
$meta_boxes[] = [ 'title' => 'Highlight Features', 'id' => 'highlight_features_metabox', 'post_types' => 'post', 'context' => 'normal', 'fields' => [ [ 'type' => 'wysiwyg', 'name' => 'Feature', 'id' => $prefix . 'highlight_features', ], ], ];Long Nguyen
ModeratorHi,
I've tried to reproduce the issue on my end but do not experience that. It is possible that the content of the block field is not saved (auto-save). You can try to click on "Save draft" or "Publish" the post and re-check this issue.
Remember to follow the Debugging Information step https://support.metabox.io/topic/how-to-create-a-new-topic/
Long Nguyen
ModeratorHi,
Thank you for reaching out.
You can use the field image_advanced to create an image gallery. Refer to this article https://metabox.io/display-uploaded-images-as-wordpress-image-gallery/
The builder Oxygen is not fully compatible with Meta Box so you have to create the custom code to show the image gallery.
August 24, 2021 at 10:36 AM in reply to: custom field WYSIWYG content not displaying with formatting #30394Long Nguyen
ModeratorHi Jimimac,
Can you please share the code that creates the custom fields and steps to reproduce the issue?
Long Nguyen
ModeratorHi,
Can you please share a screen record if it still happens? You can follow the Debugging Information step here https://support.metabox.io/topic/how-to-create-a-new-topic/ to troubleshoot this issue.
Long Nguyen
ModeratorHi,
In the View editor, you can click on the button Insert field > User tab > Select
Current UserorPost Authorthen select custom fields below. Screenshot https://imgur.com/uDt8Hi0August 23, 2021 at 6:08 PM in reply to: ✅MB Builder + MB Blocks: use php in Block Render Settings #30384Long Nguyen
ModeratorHi,
The Builder does not support running the PHP code in the Render area. But you can create your own PHP functions then call them via the proxy
mb. Please get more details here https://docs.metabox.io/extensions/mb-views/#running-php-functionsAugust 22, 2021 at 10:18 PM in reply to: ✅Dashboard can't get submitted custom posts stored in custom table #30377Long Nguyen
ModeratorHi,
Thanks for your feedback.
I will inform the development team to re-check this issue and fix it in the next update.
August 22, 2021 at 4:44 PM in reply to: ✅Dashboard can't get submitted custom posts stored in custom table #30375Long Nguyen
ModeratorHi,
Please try to add the attribute
post_typeto the frontend submit shortcode and let me know if it works.[mb_frontend_form id='diet_form' edit='true' allow_delete='true' post_type="diet_daily"]August 21, 2021 at 10:02 PM in reply to: ✅Dashboard can't get submitted custom posts stored in custom table #30371Long Nguyen
ModeratorHi,
Can you please share the code that creates the fields and custom table? And some screenshots of the frontend dashboard and frontend submit pages, shortcodes.
Long Nguyen
ModeratorHi Jon,
You can use the function get_the_terms() of WordPress to get post terms and show them. For example
<div class="list-terms"> {% set terms = mb.get_the_terms( post.ID, 'fixture-venue' ) %} {% for term in terms %} {{ term.name }} {% endfor %} </div>Get more details on this documentation https://docs.metabox.io/extensions/mb-views/#running-php-functions
August 21, 2021 at 9:25 PM in reply to: ✅Change Title to Custom field using "rwmb__before_save_post" action. #30369Long Nguyen
ModeratorHi,
You need to change the CPT slug to the meta box ID. If you are using the Builder, it is the Field Group ID, screenshot https://share.getcloudapp.com/nOuvkr6A
So the sample action hook would be
add_action( 'rwmb_post-meta_after_save_post', 'update_post_title' );Long Nguyen
ModeratorHi,
Currently, the extension MB Term Meta only supports showing the field on all terms of the taxonomy. I will create a feature request to support showing the field on specific terms, just like
'terms' => array( termID, or termSlug ).You can try to create a condition before registering the meta box by coding. For example
add_filter( 'rwmb_meta_boxes', 'your_prefix_function_name' ); function your_prefix_function_name( $meta_boxes ) { $prefix = ''; if( !is_admin() ) return; $list_term_ids = array(16, 18); // list of term IDs if( $_GET['taxonomy'] == 'poschodia_retail' && in_array( $_GET['tag_ID'], $list_term_ids ) ) { $meta_boxes[] = [ 'title' => __( 'Term Meta', 'your-text-domain' ), 'id' => 'term-meta1', 'taxonomies' => ['poschodia_retail'], 'fields' => [ [ 'name' => __( 'Text', 'your-text-domain' ), 'id' => $prefix . 'text_opthfz8evwb', 'type' => 'text', ], ], ]; } return $meta_boxes; }Long Nguyen
ModeratorHi,
Thank you for getting in touch.
You just need to add the setting
taxonomiesto show meta boxes and custom fields when editing terms. Using the MB Show Hide or MB Include Exclude to show them on a/some specific terms.add_filter( 'rwmb_meta_boxes', 'prefix_register_taxonomy_meta_boxes' ); function prefix_register_taxonomy_meta_boxes( $meta_boxes ){ $meta_boxes[] = array( 'title' => 'Standard Fields', 'taxonomies' => array('poschodia_retail'), // THIS: List of taxonomies. Array or string 'fields' => array( ... ), ); return $meta_boxes; }August 20, 2021 at 1:00 PM in reply to: ✅Errors not highlighted when using the Gutenberg editor #30356Long Nguyen
ModeratorHi,
Thank you for getting in touch.
I've tried to reproduce the issue but do not see it on my testing site, create an URL field in a cloneable/sortable group. Screenshot https://share.getcloudapp.com/2Nuly12x
Can you please share the code that creates the custom fields? I will check it on my end.
-
AuthorPosts