Forum Replies Created
-
AuthorPosts
-
Long Nguyen
ModeratorHi,
The integration is now on the testing version, please try to send your feedback to the Oxygen development team to fix this issue.
Thank you.
Long Nguyen
ModeratorHi Eliott,
- You need to get the main group value from the network setting first.
- Then access the sub-group and field value based on the ID. Here is the sample code:
$global_media_network = rwmb_meta( 'global_media_network', ['object_type' => 'network_setting'], 'map');Follow this documentation https://docs.metabox.io/extensions/mb-settings-page/#getting-field-value
// Display images $global_media_network_group_images = $global_media_network['global_media_network_images_group']['global_media_network_group_images']; foreach ( $global_media_network_group_images as $image_id ) { $image = RWMB_Image_Field::file_info( $image_id, array( 'size' => 'large' ) ); echo '<img src="' . $image['url'] . '">'; } // Display wording $global_media_network_cta_wording = $global_media_network['global_media_network_cta']['global_media_network_cta_wording']; echo $global_media_network_cta_wording;Follow this documentation https://docs.metabox.io/extensions/meta-box-group/#getting-sub-field-values
Long Nguyen
ModeratorHi,
When registering the custom taxonomy, you can enable the option "Show admin column", screenshot https://share.getcloudapp.com/z8urLLW9
It works like the Categories or Tags columns on the listing post and is filterable when clicking on the term item.
Long Nguyen
ModeratorHi,
- Regarding the shortcode:
You should wrap the SMS link in a<a>tag to allow the user to click on a button to send the SMS instead of sending SMS on page load. Like this - Regarding the admin field:
Ok, I understand your expectation. If you want to update a value to a field, please use the function update_post_meta(). The function to update the admin field value should be
return '<a href="sms:12345">Link</a>';function admin_sms_text( $post_id ) { $meta_name = rwmb_meta( 'main_contact', '', $post_id ); $meta_phone = rwmb_meta( 'cellular_phone_number', '', $post_id ); $meta_custom_message = rwmb_meta( 'text_message', '', $post_id); $page_url = get_permalink(); $text_message = 'sms:'.$meta_phone.'?&body=Hey there, it\'s '.$meta_name.'. '.$meta_custom_message.' '.$page_url; update_post_meta( $post_id, 'custom_sms_text', $text_message ); //here, the field ID (meta key) should be predefined }Long Nguyen
ModeratorHi,
Thanks for your feedback. I'm going to inform the developer team to consider adding it to the to-do list for the future development of the plugin.
Long Nguyen
ModeratorHi Paul,
Meta Box and extensions do not support creating a post type from another post type like that. You can use the plugin Post Type Switcher to switch it to another one https://wordpress.org/plugins/post-type-switcher/
Or follow this link to copy all posts from a post type to another one https://gist.github.com/HarishChaudhari/ea4ec39670135b03babd
Long Nguyen
ModeratorHi Cees,
The plugin helps you to rewrite the taxonomy slug doesn't mean removing it. If you want to remove the taxonomy slug from the URL, you can follow this topic to do that.
https://stackoverflow.com/questions/41230665/how-to-remove-taxonomy-slug-from-custom-post-type-url/53551028Long Nguyen
ModeratorHi,
Each field has its own sanitize callback function so you need to set it to "none" for each field when registering/creating. There is no way to apply that to all fields.
September 3, 2021 at 12:51 PM in reply to: ✅Copying Group field entries from another custom post type? #30568Long Nguyen
ModeratorHi,
The Block editor does not support reloading the page after updating the post. You can use the Classic editor instead of the Block editor.
Long Nguyen
ModeratorHi,
You need to pass the user ID through the attribute
object_idto the shortcode to show the user meta, like this[rwmb_meta id="tm-schedule-check" object_type="user" object_id=1]Long Nguyen
ModeratorHi,
I think it's not a good idea because you don't know exactly the meta key that is saved into the database based on the field
custom_sms_textvalue. Using the shortcode to show the SMS text would be better.Long Nguyen
ModeratorHi,
That means on the backend, the helper function gets the wrong third argument
$post_id. You can try to put the post ID to the helper function and re-check it.$files = rwmb_meta( 'cf-den-1-ustanoveni', array( 'limit' => 1 ), 1234 );Get more details on the documentation https://docs.metabox.io/rwmb-meta/#arguments
Long Nguyen
ModeratorHi Martin,
The extension MB Conditional Logic does not support show/hide a field based on user role. You can use the extension MB Include Exclude to do that and separate fields for other meta boxes.
September 2, 2021 at 10:04 PM in reply to: Don't save "select" value in database if select is not picked #30553Long Nguyen
ModeratorHi,
On my sample code above, there is no
requiredsetting of theselectfield. You just need to set this to thetextfield.Regarding the standard (Default) value, you can use the setting
placeholderinstead to prevent save the default value.September 1, 2021 at 11:19 PM in reply to: How can I configure the WYSYGYG editor options in MB Frontend Submission? #30546Long Nguyen
ModeratorHi,
FYI, the settings under
tinymceare applied to the Visual tab. The settings underquicktagsare applied to the Text or HTML tab.'fields' => [ [ 'type' => 'wysiwyg', 'id' => 'content123', 'name' => 'Descripción', 'save_field' => false, 'options' => [ 'textarea_rows' => 3, 'media_buttons' => false, 'teeny' => false, 'quicktags' => [ 'buttons' => 'strong,em,u,link,ul,ol,li', ], 'tinymce' => [ 'toolbar1' => 'bold,italic', ] ] ], ],See my screenshots
https://share.getcloudapp.com/Wnu0kybY
https://share.getcloudapp.com/Qwu52L0GRead more on the documentation
https://codex.wordpress.org/TinyMCE
https://codex.wordpress.org/Quicktags_API -
AuthorPosts