Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterJust found the bug and pushed a fix on Github. Can you please test that?
Anh Tran
KeymasterSorry, I almost forgot to track this question. I've just pushed a fix for this on Github. The problem is the jQuery validation plugin doesn't work for hidden elements by default.
Anh Tran
KeymasterAre you using the latest version of the extension? This feature has just been added in version 1.1.0.
Anh Tran
KeymasterMaybe you're right. I need to check that again. Can you tell me which field type are you using?
Anh Tran
KeymasterHi,
Thanks for asking this. There are 2 internal helper functions
rwmb_get_value()andrwmb_the_value()which are used inrwmb_meta()function. They're not 100% stable since v4.8.0 so I haven't put them in the docs yet.Briefly,
rwmb_get_valuereturns the raw value stored in the post meta, whilerwmb_the_valuereturns (or outputs) the *meaningful* value in the frontend. Meaningful = option label for select box, post title for post field, a colorful dot for color field, etc.Both functions accept the same parameters as
rwmb_meta. Parameters also share the same meaning.rwmb_get_value( $field_id, $args = array(), $post_id = null ) rwmb_the_value( $field_id, $args = array(), $post_id = null, $echo = true )They also use
$post_idif you want to get meta value from a specific post.In your case if the result goes unexpected, please try setting up the
$post_id. Anyway, there was also a topic reporting the same problem happened because of wrong post ID. But I couldn't find out whyAnh Tran
KeymasterAre you using the latest version of the Updater? I think I fixed that.
April 1, 2016 at 1:24 PM in reply to: Suppress Error Message before Meta-Box-Groups is Activated #2639Anh Tran
KeymasterHi,
I think you're doing correctly. However, I will think more about a better way to suppress the error. For now, all fields' classes are loaded by autoload and it makes us impossible to use
class_exists.March 31, 2016 at 1:14 PM in reply to: MB Admin Column : Could i change default "Title" with another word #2631Anh Tran
KeymasterUnfortunately, it's not supported. The plugin is made for working with custom fields and should handle custom columns for custom field only. For the default WP columns, I made it support replacing them only.
However, you can do that with a simple code like this:
add_filter('manage_edit-POST_TYPE_columns', 'prefix_custom_columns'); function prefix_custom_columns( $columns ) { $columns['title'] = __( 'Lecture Name', 'textdomain' ); return $columns; }For more details, you can check this tutorial.
Anh Tran
KeymasterHi buzzmn,
The reason you don't see the new extensions in the download bundle is at the time your purchased the bundle with a lower price, the extensions have not been published. When new extensions are added to the bundle, the price increase. So you purchased for the current extensions at that moment. The new bundle requires higher price. Please understand that the bundle doesn't guarantee all current and future extensions. It has current extensions with a corresponding price.
Anh Tran
KeymasterDid you install the updater extension on client websites? The updater extension enables the updates of all extensions (including itself) as normal plugins.
Anh Tran
KeymasterI highly recommend to include the main plugin and extensions using the TGM Activation Class. The TGM Activation Class is being proposed to be included in WordPress core. So, we have good reasons to use it.
But, if you want to include the tab extension in your theme anyway, then you have to do 2 things:
- Include the plugin main file
- Enqueue correct CSS/JS filesYour code above only did the 1st thing. To enqueue CSS/JS file, you can do this:
add_action( 'rwmb_enqueue_scripts', 'prefix_meta_box_tabs_enqueue' ); function prefix_meta_box_tabs_enqueue() { wp_enqueue_style( 'tabs-ext', get_template_directory_uri() . '/inc/meta-box-tabs/tabs.css' ); wp_enqueue_script( 'tabs-ext', get_template_directory_uri() . '/inc/meta-box-tabs/tabs.js', array( 'jquery' ), '', true ); }Please double check the URL to files
tabs.cssandtabs.js.Anh Tran
KeymasterThank you Yumikon, I will keep a note on this.
Anh Tran
KeymasterHi Yumikom,
Unfortunately, WordPress doesn't support saving custom fields in the revision by default (even custom fields in the default Custom Fields meta box). This requires some work on that and we haven't done it yet.
Anh Tran
KeymasterThis is not a built-in feature. I think the way you're doing is correct: getting data via Ajax and use JS to populate the inputs.
We're building a premium extension for GeoCoding where the data is got from Google Maps Geocoding API via ajax and then populates all geolocation's fields. The principle is the same ๐
Anh Tran
KeymasterHi Roberto,
Can you please post your code?
-
AuthorPosts