Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterIt's a bug in the MB User Meta extension and I have fixed it.
June 6, 2019 at 11:40 AM in reply to: User Field using Select Advanced should display User Full Name and Username too #14857Anh Tran
KeymasterHi Mauro, please use this filter:
https://docs.metabox.io/filters/#choice-fields-user-post-taxonomy-filters
Anh Tran
KeymasterHi Ryan, I think the problem is the validation not working properly with wysiwyg field. I tried in the back end and see the same problem. If you switch between Visual/Text mode, then TinyMCE will update the content and set the validation properly.
Anh Tran
Keymaster@Neil: Thanks a lot for your post! I think other people will find this useful, too!
June 6, 2019 at 11:17 AM in reply to: ✅Adding Custom Fields for Woo Product Variations - Help #14854Anh Tran
KeymasterHi @bodenburgc,
Unfortunately, it's not supported. You can add a whole meta box for the product, but not for a variation.
Anh Tran
KeymasterHi Sergio,
Each meta box (from/to) has an ID:
{relationship_id}_relationships_fromand{relationship_id}_relationships_to, so you can just add these IDs to theidattribute of the shortcode to show on the front end.Anh Tran
KeymasterCan you try entering the ID of the address field into that input box?
Anh Tran
KeymasterHi William,
Thanks for using Meta Box. I've just sent the invoice to your email. Please check it.
Anh Tran
KeymasterHi Sergio,
The first image looks like from the Geolocation extension, doesn't it? The other images looks like from the Map field. Can you check if Geolocation extension is activated on all installations?
June 4, 2019 at 11:07 AM in reply to: How to make repeating post with custom fields using Meta Box #14827Anh Tran
KeymasterHi Jonathan,
Please see this docs: https://docs.metabox.io/extensions/meta-box-group/#outputing-group-in-a-page-builder
Anh Tran
KeymasterHi @easy,
The working code here: https://pastebin.com/qKA2uYWL
There are 2 notes:
- I added the code to get the current post ID
- Query args are set for the current post type, so the param should be in the
frompart instead ofto
I also optimize the query a little bit.
I'm checking the bug with reordering. Thanks for your feedback.
Updated: I've checked the reorder bug and it seems to be the browser cache. Pressing Ctrl-F5 to reload the page without cache will fix this.
Anh Tran
KeymasterAnh Tran
KeymasterHi Neil,
This is an interesting case.
I think you probably don't need a CPT for Menu. Since each location has a specific menu, a CPT Menu probably serves nothing.
If I do this, I probably will set CPTs this way:
- Menu items: each menu item has a default price
- Locations: each location will has a cloneable group of menu items, like this:
- Menu item: a
postfield (for selecting menu items from the list) - Custom price: a
textfield (if that location has a different price for that menu item)
- Menu item: a
If some locations have unique menu items, they should be added as a new posts under Menu items first. Then users can select from the list when edit a Location.
Anh Tran
KeymasterHi Neil,
You can convert the format using PHP
date()function. Assuming your time has format "04:20 PM", and you want to convert to "16:20", here is the code:$time = rwmb_meta( 'field_id' ); // 04:20 PM echo date( 'H:i', strtotime( $time ) ); // 16:20Anh Tran
KeymasterYes, we have resolved this problem and the fix was added in the 4.18.2 version.
-
AuthorPosts