Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi,
1st and 2nd problem: I guess you're using Gutenberg, thus the
requiredparameter doesn't work, because WordPress submits values via Ajax. Until now, there's no solution for that yet.3rd problem: I see you miss
stdfrom my code, so of courses, fields are not filled.Regarding the filter: you might want to try Search & Filter plugin. It's free on wordpress.org.
September 14, 2019 at 11:07 AM in reply to: ✅How to remove Meta Box license key Notification when Extension is Bundled? #16125Anh Tran
KeymasterDone! Here you are. The class is
rwmb-activate-license.September 13, 2019 at 10:24 AM in reply to: ✅How to remove Meta Box license key Notification when Extension is Bundled? #16112Anh Tran
KeymasterHi Swami, how about adding a CSS class to the "Activate License" text? You can hide them with CSS.
Anh Tran
KeymasterHere is the code with
std:Regarding filtering results on the front end, please use a search & filter plugin like FacetWP. We support FacetWP via a free extension.
Anh Tran
KeymasterHi Ranadeep,
The extension validation is an add-on for the jQuery validation library and it's not included in Meta Box.
In order to use it, please download the
extension.jsfile from Github:https://github.com/jquery-validation/jquery-validation/blob/master/src/additional/extension.js
And enqueue it like this:
add_action( 'rwmb_enqueue_scripts', function() { wp_enqueue_script( 'jquery-validation-extension', 'url to the js file', '', '', true ); }Then you can use the extension rule.
Anh Tran
KeymasterHere you are:
<?php add_filter( 'rwmb_meta_boxes', function( $meta_boxes ) { $meta_boxes[] = [ 'title' => 'Test', 'geo' => [ 'api_key' => 'your_api_key', ], 'fields' => [ [ 'id' => 'address', 'type' => 'text', 'name' => 'Address', ], [ 'id' => 'administrative_area_level_1', 'type' => 'text', 'name' => 'State', ], [ 'id' => 'country', 'type' => 'text', 'name' => 'Country', ], ], ]; return $meta_boxes; } );Anh Tran
KeymasterI see. That syntax is for PHP >= 5.4 which supports short array syntax. Please try:
$room_show_img = RWMB_Image_Field::file_info( $room_img_id, array( 'size' => 'thumbnail' ) );It's better to upgrade to PHP 7.2, the performance is twice better than PHP 5.
September 13, 2019 at 8:29 AM in reply to: ✅License key says invalid and edit/save link also broken #16106Anh Tran
KeymasterHi, please deactivate the Meta Box Updater module in AIO. It's no longer needed since the updater is merged into Meta Box.
FYI: new version of AIO includes free extensions as well, so you might want to remove them from the plugin list.
Anh Tran
KeymasterI got it. Thanks for the clarification.
I'm afraid there's no way to detect a field is closed or open, especially in different context (classic or block editor).
At the moment, the queries when page loads are minimal as they query only selected items. I don't think that's a performance bottle neck.
Anh Tran
KeymasterHi,
What do you mean "not php object way"? Is there any relation with PHP 5.6?
Anh Tran
KeymasterHi Mauro, you can disable the manual entry by setting
'readonly' => true.Anh Tran
KeymasterHi Daniel,
Could you please provide more info? Is this like creating a field to select saved templates from page builders?
Anh Tran
KeymasterHi,
Doesn't the
stdsettings work? You can get the current post info (post ID is grabbed from$_GET) and put the post info in thestdsettings for the fields.September 12, 2019 at 10:56 AM in reply to: ✅Received license key renewal receipt, but plugin has not been updated #16085Anh Tran
KeymasterHi,
Can you please give me more details on how you "enter them in our relevant WP plugins"? Do you set the license key programmatically?
-
AuthorPosts