Forum Replies Created
-
AuthorPosts
-
June 20, 2019 at 3:28 PM in reply to: ✅Cloning a Metabox Group item results in 'property content is undefined' #15016
Anh Tran
KeymasterHi, I'm guessing you're using an old version of MB Group. Please update it first.
Anh Tran
KeymasterHi SWS, modifying the plugin directly won't help.
Please try these steps:
- Download the latest version on Github. Here is the link to the
.zipfile: https://github.com/wpmetabox/meta-box/archive/master.zip - Unzip it and copy all files to your host, overwriting old files of the plugins
And then modify the code for the
taxonomyortaxonomy_advancedfield and add another attribute to the field settings:'remove_default' => trueSo the code of the field will be similar to this:
array( 'id' => 'my_field', 'name' => 'My Taxonomy', 'type' => 'taxonomy_advanced', 'taxonomy' => 'category', 'remove_default' => true, )Anh Tran
KeymasterHi raphael,
The
update_post_metais the low level API for adding post meta, while the revision stays in higher level of the WordPress app. So, if you useupdate_post_meta, that's the expected behavior.I think trigger the creation of a revision can be done with
wp_insert_post. Here is the docs for it: https://wordpress.org/support/article/revisions/#revision-storage-method. Strangely, I couldn't find a programmatic way to create a revision. Probably WordPress doesn't support it yet.Anh Tran
KeymasterHi Dave,
I'm not very experienced with how GF searches for custom fields. Maybe you need to find a hook to filter the list of custom fields (to add your own fields from custom table) or ask GF for help.
Anh Tran
KeymasterHi Pascal,
I've just tested with your code and don't see the problem. Do you see any error in the dev console?
Anh Tran
KeymasterHi Stefan,
Can you please try this fix?
https://github.com/wpmetabox/meta-box/commit/2c2e7da9e3cb340edcff2d80069e1fb27f1910a2
June 20, 2019 at 2:45 PM in reply to: ✅Gutenberg Sidebar Media Upload Clash with image_advanced #15010Anh Tran
KeymasterHi @latlong,
That's exactly the problem in the topic you mentioned above. The problem is media items (models) used in Gutenberg and our Backbone collection are shared (the WP's API does that). And Gutenberg clears the collection (which removes the items) when selecting another image (which is weird, since in the classic editor, it doesn't happen). I'm still looking for a fix.
Anh Tran
KeymasterHi Bruno,
Please try to set a custom CSS class for the inputs which starts with
rwmb. See here to understand how the clone works.Anh Tran
KeymasterHi Ryan,
Can you send me a screenshot of the bug? And the code?
I tested with
maxattribute and validation, and both work without problem. I'm using Firefox.Anh Tran
KeymasterHi Engo,
I've just updated the link for MB Builder 3.0.0-RC1. It's a RC-version and the link is temporary. I'll release the final version when it's fully tested.
Anh Tran
KeymasterHi, I've just tested the plugin and it works fine to me. Here is the video I made for that:
Update 1: I replied too fast. I didn't notice you were talking about custom table. Let me check that again.
Update 2: I've just pushed a fix to the plugin here. Can you please try it?
Anh Tran
KeymasterHi Dave,
I've just push a fix for MB Conditional Logic extension. Now that works for elements outside cloneable groups.
The update for Meta Box AIO will come later.
June 12, 2019 at 9:30 AM in reply to: Can I use Metabox to create forms for Woocommerce My Account Session? #14941Anh Tran
KeymasterHi Jefferson,
We have 2 extensions for front-end forms: MB Frontend Submission (for submitting posts) and MB User Profile (for editing user details). If your forms have some similarity, then you can use them.
Anh Tran
KeymasterHi @SWS,
You're right about creating taxonomies in 2 places. I've just added a commit that adds
remove_defaultparam for taxonomy field, which helps removing the default WordPress taxonomy meta box (it's enabled by default). Please try it. - Download the latest version on Github. Here is the link to the
-
AuthorPosts