Forum Replies Created
-
AuthorPosts
-
October 11, 2024 at 10:32 PM in reply to: ✅Meta Box AIO License page not accessible with composer #46664
Peter
ModeratorHello,
Even adding Metabox AIO through composer as a library still do I need to activate my license for the Meta Box AIO through the WP Admin dashboard settings page again?Yes, installing plugins via composer doesn't relate to the activated license key on your site. You still need to activate the license key on your site to use premium plugins.
If you cannot access the License page, try to activate the license key by adding the code to the file wp-config.php
define( 'META_BOX_KEY', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ123456' );Following the documentation https://docs.metabox.io/updates/#can-i-define-the-license-key-via-a-constant-in-wp-configphp
Peter
ModeratorHello Yasmine,
Thank you for your feedback.
I can reproduce the issue on my demo site, if you click on the radio text, it will select the last option. If you click on the radio circle icon, it will select the correct one. Screenshot https://imgur.com/5WBz1hd
October 11, 2024 at 9:43 PM in reply to: ✅WYISWG editor do not work inside nested group on some instances #46662Peter
ModeratorHello,
Can you please export the field group to a JSON file and share it here? I will check the post field on my demo site. Following the documentation https://docs.metabox.io/extensions/meta-box-builder/#export--import
Peter
ModeratorHello,
If you delete a cloneable entry, you can save the post and reload the page, the index number will be corrected. If you use a custom JS code, you might need to listen to the DOM change and re-trigger the function to check the clone entries.
October 9, 2024 at 10:41 PM in reply to: ✅Custom Post no longer editable (displays no content when pressing edit) #46647Peter
ModeratorHello Frerik,
You can try to follow this tutorial to increase the PHP setting
max_input_varsto fix the issue
https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/Let me know how it goes.
Peter
ModeratorHello,
1. If you add the post ID directly to the frontend form shortcode, do you see the error appear? For example:
[mb_frontend_form id="your-form-id" post_id="208" post_type="artwork" edit="true"]2. Can you please let me know where you get this filter hook
rwmb_frontend_access? It isn't available in the documentation or the source code
https://docs.metabox.io/extensions/mb-frontend-submission/Peter
ModeratorHello,
You can try to follow this tutorial to increase the PHP setting
max_input_varsto fix the issue
https://metabox.io/wordpress-custom-fields-not-saving-increase-max-input-vars/Let me know how it goes.
October 9, 2024 at 9:50 PM in reply to: after_save_post on settings page - values not updated #46644Peter
ModeratorIs the documentation incorrect?The documentation is correct. But the function
update_post_meta()will update the post meta, not the settings page value. Here is an example:add_action( 'rwmb_fundraiser-fields_after_save_post', function( $object_id ) { update_option(...); } );If you cannot complete the task, we offer a customization service. Please contact us here for more details https://metabox.io/contact/
Peter
ModeratorHello Andrew,
There is only one variable
$message(text) is passed to the filter hookrwmb_oembed_not_available_stringso it isn't possible to add a link to the URL if it isn't available. I will inform the development team to consider adding the URL variable to the filter hook.Thanks for sharing your solution.
Peter
ModeratorHello Anchen,
I don't see the widget Posts of Beaver builder support showing the custom fields in the list of posts. You can get in touch with Beaver support and ask for more information.
Or use the View to create the archive template with post content and custom fields, following the documentation https://docs.metabox.io/tutorials/display-most-viewed-posts-mb-views/Peter
ModeratorHello,
You can use the code to make the field in the relationship box mandatory. Here is an example:
function your_prefix_function_name() { MB_Relationships_API::register( [ 'id' => 'post-to-product', 'from' => [ 'object_type' => 'post', 'post_type' => 'post', 'field' => [ 'required' => true //here ], ], 'to' => [ 'object_type' => 'post', 'post_type' => 'product', 'field' => [ 'required' => true //here ], ], ] ); }Following the documentation https://docs.metabox.io/extensions/mb-relationships/#using-code
October 8, 2024 at 11:13 PM in reply to: after_save_post on settings page - values not updated #46629Peter
ModeratorHello,
It isn't an issue with the action hook
rwmb_after_save_post. The issue lies in the functionupdate_post_meta()in the callback that you are using. The settings page doesn't have an object ID, so apparently, the functionupdate_post_meta()won't work to update a post meta for a post.Peter
ModeratorHello,
I test to use both Meta Box and Pods on a local site and don't see any issues. However, I'm not sure of all effects when using both plugins. I recommend migrating the Pods data to Meta Box and managing all data with Meta Box.
If you have an issue when migrating the relationships, please let me know.October 6, 2024 at 10:20 PM in reply to: after_save_post on settings page - values not updated #46615Peter
ModeratorHello,
Obviously, the settings page isn't a post, so the function
update_post_meta()doesn't work to update the settings page. You can use the functionrwmb_set_meta()orupdate_option()to update fields on a settings page.Please follow the documentation
https://docs.metabox.io/functions/rwmb-set-meta/
https://developer.wordpress.org/reference/functions/update_option/
https://docs.metabox.io/extensions/mb-settings-page/October 6, 2024 at 10:14 PM in reply to: Custom Sanitization CB for Cloneable Group but only targeting a few fields #46614Peter
ModeratorYes, if you want to apply a function to some specific fields, using the field prefix is a better way to do so.
-
AuthorPosts