Forum Replies Created
-
AuthorPosts
-
May 13, 2021 at 2:57 PM in reply to: ✅Post type and taxonomy not connected when copying php code #28151
Long Nguyen
ModeratorHi,
The issue looks to relate to this topic https://support.metabox.io/topic/unable-to-edit-taxonomies-in-editor/
Please follow the topic and let me know if it helped.
Long Nguyen
ModeratorHi,
The setting to change the date format is
dateFormat, can you please re-check it? Screenshot https://imgur.com/8ip8rgDGet more JS options here https://api.jqueryui.com/datepicker/
Long Nguyen
ModeratorHi Toni,
If the group is cloneable, you need to set the group value before setting meta. Please try to use this code
add_action( 'init', function() { $groups = rwmb_meta( 'group_atividade', '', 15 ); foreach( $groups as $index => $group ) { if( $index == 0 ) { $groups[$index]['atividade_status_rdo'] = 'PARALISADA1'; } if( $index == 1 ) { $groups[$index]['atividade_status_rdo'] = 'PARALISADA2'; } } rwmb_set_meta( 15, 'group_atividade', $groups ); }, 99 );May 13, 2021 at 12:45 PM in reply to: ✅Post type and taxonomy not connected when copying php code #28145Long Nguyen
ModeratorHi,
Thank you for reaching out.
After adding the generated PHP code to the file functions.php in a plugin or the theme, did you deactivate the extension MB Custom Post Types or move the post type Message to Trash in the Builder?
You can also share the generated PHP code, I will help you to check it on my end.
Long Nguyen
ModeratorHi,
Thank you for getting in touch.
-
The main aim of MB User Meta is to create custom fields for users in the backend, the frontend is optional with MB User Profile. But the fields available in the backend when editing the user, not when creating new. I've informed the development team to support this.
-
No, it just helps you to create taxonomies. You can use a third-party plugin to manage the accessibility of user roles, such as https://wordpress.org/plugins/user-role-editor/.
Long Nguyen
ModeratorThanks for letting me know. I will mark this topic as Resolved.
Long Nguyen
ModeratorHi,
I think you need to get the group value and all subfields inside, add some fields to an array modify the value. Then update the array to other posts. Refer to this topic https://support.metabox.io/topic/replace-array-value-in-group/
Hope that helps.
Long Nguyen
ModeratorHi Erik,
I do not see this issue on my end. Did you enable the setting
Save data in the raw formatin the Builder? See more on the documentation https://docs.metabox.io/fields/wysiwyg/#settingsLong Nguyen
ModeratorHi Harry,
If you read more on the article https://metabox.io/move-custom-post-type-custom-field-data-from-pods-to-meta-box/, you can see that we use the slug to move the CPT. So you can change the Plural name, Singular name to another but you have to keep the current slug to make the current posts available.
Long Nguyen
ModeratorHi,
Please follow the Debugging Information step here https://support.metabox.io/topic/how-to-create-a-new-topic/.
If it still does not work, please share your site credentials via the contact form https://metabox.io/contact/. I will help you to check it.
Long Nguyen
ModeratorHi Riccardo,
Thank you for reaching out.
The calculation field is not supported yet. You can follow this topic to do the same function with some JavaScript code https://support.metabox.io/topic/calculation-in-fields-success-error-messages-jquery-version/.
Long Nguyen
ModeratorHi Concan,
You can follow this topic to know how to display a cloneable group in Oxygen Builder by using a custom function https://support.metabox.io/topic/subfields-not-displaying-within-oxygen-custom-field-meta-options/.
Long Nguyen
ModeratorHi Greg,
If you want to use the block of the staging site in the production site with the builder, you can use the feature export/import of this extension. Get more details here https://docs.metabox.io/extensions/meta-box-builder/#export--import
Another way is to get the PHP code that creates the block, adds it to the file functions.php in the theme/child theme folder, or uses Code Snippets.
https://docs.metabox.io/extensions/meta-box-builder/#getting-php-codeMay 12, 2021 at 9:33 AM in reply to: ✅Subfields not displaying within Oxygen Custom Field/Meta Options #28119Long Nguyen
ModeratorHi Amanda,
Sorry for the late reply.
You can use the PHP code anytime even the integration released. It can help you to do some advanced cases when the integration won't cover.
I recommend using the Code Snippets to run the custom function.
function my_custom_function() { $contacts = rwmb_meta( 'contacts' ); if ( ! empty( $contacts ) ) { foreach ( $contacts as $contact ) { echo '<div class="contact">'; echo '<h4>', 'Contact info', '</h4>'; echo '<p><label>', 'Name:', '<label> ', $contact['name'], '</p>'; echo '<p><label>', 'Email:', '<label> ', $contact['email'], '</p>'; echo '<p><label>', 'Phone number:', '<label> ', $contact['phone'], '</p>'; echo '</div>'; } } }See the example for the cloneable group https://docs.metabox.io/extensions/meta-box-group/#examples
Long Nguyen
ModeratorHi,
Thanks for your additional information.
I will need more time to check on this case. On the other hand, you can use the PHP code to get connected post by using PHP, see more on the document https://docs.metabox.io/extensions/mb-relationships/#getting-connected-items.
Wrap it in a custom function
function my_custom_relationship() { $pages = MB_Relationships_API::get_connected( [ 'id' => 'posts_to_pages', 'from' => get_the_ID(), ] ); foreach ( $pages as $p ) { echo $p->post_title; } }and call it in the View
{{ mb.my_custom_relationship() }} -
-
AuthorPosts