Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi Bezzo,
Thanks for your idea. I think it's ok to remove autoload from Composer and leave it for developers. I've just made the change. Please try again.
Anh Tran
KeymasterHi Joseph,
We've just updated the MB User Profile plugin to version 1.1.1 with support for this feature. Please update.
Anh Tran
KeymasterHi Harrison,
Sorry for the delay.
The HTML output looks correct. The upload button is rendered by JavaScript. In your code, looks like the JavaScript doesn't run.
Would you mind sending me the admin account to check it? Please send in the contact form.
Anh Tran
KeymasterHi Hazmi,
I've tried your code and it's working correctly. There is no '0' saved in the DB. Please see my video:
Anh Tran
KeymasterI'm sorry for the "re-save". You can write a script to help you doing this.
Regarding the
datetimefield, if you set'std' => ' ', then when saving the post without specifying the datetime, it will save exactly as' 'in the database. Actually, the plugin treats datetime field like a text field, unless you set'timestamp' => true, which converts datetime into integer. And then in that case, the value is kind of unexpected, cause' 'is converted to incorrect value.Anh Tran
KeymasterHi Hazmi,
Sorry for the late reply. In the previous topic, I marked it as "resolved" when I pushed the commit that I thought it fixed the bug.
Let me check it again and will reply you soon.
Anh Tran
KeymasterHi Dan,
We have resolved this issue on Meta Box Users group on Facebook. Let me quote here in case anyone needed:
The CPT you created had some un-rendered labels. So I guess when you created the new CPT and you hit the Save button too fast (probably by press Enter), which makes the JS code hasn't finished rendering all the labels and settings. Thus data saved is incorrect and makes WP doesn't understand.
I tried to find that post ID (using the export tool of WP), and run a
wp_delete_post( ID )to remove it. Everything goes back.Anh Tran
KeymasterThanks a lot! I've just fixed it. It should be:
MB_Relationships_API::register( array( 'id' => 'posts_to_pages', 'from' => array( 'object_type' => 'post', 'admin_column' => 'true', // THIS! ), 'to' => array( 'object_type' => 'post', 'post_type' => 'page', 'admin_column' => 'after title', // THIS! ), ) );Anh Tran
KeymasterHi Neil,
1 - Yes, you can add more relationships. Just repeat the code
MB_Relationships_API::register.
2 - To change the box title, please set the relationship info when you register it.I've written in details about that in the documentation. Please take a look.
Anh Tran
KeymasterWhen you select a field to connect, choose the Insert button, not Connect. That inserts a shortcode into the field. Then you can insert another shortcode, making them display inline.
Please see this video:
Anh Tran
KeymasterIn the all field groups screen, please select a field group and select Export from the dropdown, like this:
Anh Tran
KeymasterHello,
It's kind of impossible to revert the PHP code into MB Builder .dat file. Once you deleted the meta box in MB Builder, it's actually gone. If you want to edit, then please create it again.
Anh Tran
KeymasterHello,
Yes, you can do that with Conditional Logic extension. Please see this tutorial.
Anh Tran
KeymasterHi Harrison,
Can you please re-upload your code? I see only a text "Hey" in the link.
-
AuthorPosts