Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi,
To create a settings page, there are 2 steps:
- Creating a settings page first, using the filter
mb_settings_pages, and - Creating fields for the settings page, using the normal
mb_meta_boxes.
Both steps are described in this documentation. Please take a look and let me know if you see any difficulty.
Anh Tran
KeymasterHi,
I think if you mark a field required, the browser will force you to enter a value. It works per field, which means it doesn't depend on values of other fields. So no matter that field is in a group or not, if it's required, it should have a value.
I'd suggest using custom JavaScript code to check the emptiness of a group (clone) before submitting the post, and not using the required featured. This way, you control when and how the field is "required".
October 13, 2018 at 11:28 AM in reply to: ✅OpenStreetMap is not working properly with Tabs Extension #11617Anh Tran
KeymasterHi Saqib,
Thanks for your feedback. I've just fixed in MB Tabs extension and in Meta Box plugin. Please update MB Tabs and get the dev version of Meta Box on Github. I'll release new version for Meta Box soon.
Thanks
Anh Tran
KeymasterThanks for the info. I'm checking your site and found a problem: the ID of the field contains a space:
https://imgur.elightup.com/sFnaTYm.png
That comes from the
$prefix = strtolower($this->attributes['post']['single']);, which transformCase Studyto justcase study. It should becase_study. Please try this code:$prefix = str_replace(' ', '_', strtolower($this->attributes['post']['single']));The space in field ID (and then in the input name/ID) causes unexpected behavior, and that might be a cause to this problem.
Anh Tran
KeymasterHi Huy,
Do you mean getting the post object or getting the items in the pricing table?
Can you also share the code of the meta box?
October 12, 2018 at 11:12 AM in reply to: ✅MB Revisions in combination with MB Custom Table and Custom Post Type #11603Anh Tran
KeymasterHi Purdue,
There's a bug that MB Revision doesn't work with custom table yet. We're working on that. Please wait for a few days.
Anh Tran
KeymasterPlease do not use
composer update. Try to remove thevendorfolder and docomposer installagain. Runningupdatemakes Composer look up for a higher version than the current4.19.10, which is not available.Anh Tran
KeymasterHi Erik,
The error comes from the version
dev-trunkformeta-boxpackage (the free one). Please specify a correct version like^4.15. There was an error in the tags in SVN for version "4.19.10" (which is not available. It should be "4.14.10"). I'll fix that now.October 11, 2018 at 3:07 PM in reply to: ✅Minimum Plugin needed to support Metabox Repeating text Field? #11597Anh Tran
KeymasterHi Dan,
For both of that, you just need the free Meta Box plugin.
a) For repeating text field, please use the clone feature.
b) For standard fields, it's already supported. Please see the docs here.
If you need advanced repeating fields, such as repeat a group of fields, then you'll need MB Group.
That's all.
October 10, 2018 at 3:09 PM in reply to: ✅Clone As Multiple Feature Doesn't Work With Taxonomy Advanced Field #11587Anh Tran
KeymasterHi, thanks for your bug report. Let me check and fix it.
Anh Tran
KeymasterFYI, new version was tested and has just been released on wordpress.org. Please update!
October 10, 2018 at 11:13 AM in reply to: ✅Custom Post Type by Two Custom Fields via REST API #11585Anh Tran
KeymasterHi,
In WordPress 4.7, the
filterparameter that filter the query parameters was removed. I found a repository on Github that re-add the filter. It's in the WP-API account on Github, so hopefully, it's official. Please try it.Anh Tran
KeymasterHi Michael,
It's done on the branch
term_metaon Github. But we need a few days to optimize the code and merge it to the final version. You can use the code on Github in the meantime.Anh Tran
KeymasterHi Ben,
Sorry to miss your question.
Do you use any kind of condition for meta box? Kind of using the Include Exclude or Conditional Logic extension?
And is the post type set correctly? Can you try with the normal post?
- Creating a settings page first, using the filter
-
AuthorPosts