Forum Replies Created
-
AuthorPosts
-
April 30, 2021 at 11:06 AM in reply to: ✅Custom field wysiwyg break woocommerce product field #27773
Long Nguyen
ModeratorHi,
Thank you for your additional information.
There is a problem when the field ID has a special character (single quote). To resolve this case, please edit your field ID and change it to
mode_demploi. Screenshot https://share.getcloudapp.com/nOuoQ669.Let me know how it goes.
April 30, 2021 at 10:54 AM in reply to: ✅Using rwmb_filter_id_value for cloned grouped sub fields #27772Long Nguyen
ModeratorHi,
The group saves the group ID as meta key in the database so if you want to modify the subfield value, you need to use the filter of group ID. For example:
add_filter( "rwmb_group_id_value", function( $new, $field, $old ) { $new['subfield_3'] = 'Test value'; return $new; }, 99, 3 );Get more information about the group value here https://docs.metabox.io/extensions/meta-box-group/#getting-sub-field-values
Long Nguyen
ModeratorHi Ameneses,
Please try to use the option
Custom rewrite slugto change the archive slug. Screenshot https://share.getcloudapp.com/9Zuxywz9.Let me know how it goes.
Long Nguyen
ModeratorHi,
Thank you for your feedback.
I'm going to create a feature request for the developer team and add it to the to-do list for the future development of the plugin.
Long Nguyen
ModeratorHi Cat,
Thank you for reaching out.
Can you please share the code that creates the CPT? Just click on "Get PHP Code" when editing the CPT. I will check it on my end.
https://docs.metabox.io/extensions/mb-custom-post-type/Long Nguyen
ModeratorHi Marie,
Thank you for getting in touch.
This feature request is on our backlog development. It will be included in future updates.
Long Nguyen
ModeratorHi Andreas,
Thank you for reaching out.
I've installed and activated the plugin Display Posts on my local site. After editing and save a post with a WYSIWYG field, I see the field saves data as well. Please follow the Debugging Information step and see if it works. If it still does not work, please share the code that creates the WYSIWYG field. Using the option "Get PHP Code" https://docs.metabox.io/extensions/meta-box-builder/#getting-php-code, I will check it out.
Long Nguyen
ModeratorHi,
It looks like you miss the closing
<a>tag.<a href="{{ post.url }}"><img src="{{ post.thumbnail.medium.url }}" width="{{ post.thumbnail.medium.width }}" height="{{ post.thumbnail.medium.height }}" alt="{{ post.thumbnail.medium.alt }}" /></a> <h4>{{ post.title }}</h4>Please re-check it and let me know how it goes.
Long Nguyen
ModeratorHi Cees,
Thank you for your feedback.
I'm not able to reproduce the issue on my end. Can you please share a screen record of this issue? Remember to only activate Meta Box and MB extensions when creating the custom field to re-check it.
Long Nguyen
ModeratorHi,
Please try to deactivate all plugins except Meta Box, MB extensions, WooCommerce and switch to another theme (Twenty TwentyOne) to re-check the issue.
You can also share the code that creates the custom fields by using "Get PHP Code" option, get more details here https://docs.metabox.io/extensions/meta-box-builder/#getting-php-code.
April 29, 2021 at 9:32 AM in reply to: ✅Custom HTML + PHP callback to display value on Settings Page (MB AIO) #27746Long Nguyen
ModeratorHi,
You can add the custom function in a custom plugin or use the plugin Code Snippets https://wordpress.org/plugins/code-snippets/
Long Nguyen
ModeratorHi Ryan,
Each relationship meta box has an ID:
{$relationship_id}_relationships_fromand{$relationship_id}_relationships_to. You can use these IDs to get the meta box registry information. For example$meta_box_registry = rwmb_get_registry( 'meta_box' ); $registry = $meta_box_registry->get('{$relationship_id}_relationships_from');Get more details here https://docs.metabox.io/rwmb-get-registry/
April 28, 2021 at 11:07 PM in reply to: ✅Custom HTML + PHP callback to display value on Settings Page (MB AIO) #27739Long Nguyen
ModeratorHi Jordan,
Thank you for reaching out.
The field type
custom_htmlonly accepts the callback function name. It also does not support passing the argument on this setting.If you use content setting, it only accepts HTML code, not support PHP code. See my screenshot https://share.getcloudapp.com/z8u6G19r.
Get more details on the documentation https://docs.metabox.io/fields/custom-html/.
Long Nguyen
ModeratorHi,
Please do some steps to troubleshoot the issue
- Copy the generated PHP code that creates the CPT and paste to the file functions.php in the theme folder
- Deactivate the plugin Meta Box and extensions, skip the custom fields for testing
Let me know if it resolves the issue.
April 28, 2021 at 9:46 AM in reply to: ✅Oxygen/WYSIWYG, Images, Video fields output to Array not an image or video #27720Long Nguyen
ModeratorHi Anthony,
Can you please share the code that creates the custom fields (Getting PHP code) and the code in your View?
I can help you to check it.
-
AuthorPosts