Forum Replies Created
-
AuthorPosts
-
Camilo Mejia
ParticipantHi Anh
Thanks for your help, after looking how rwmb_the_value works in the plugin code I found rwmb_get_field_settings and implemented something similar to your example. I missed it when I looked in the documentation.
But I think it's confusing that rwmb_the_value returns labels and rwmb_get_value returns values, when both methods have similar names. What about adding an optional parameter to rwmb_get_value to choose between labels and values? Or create rwmb_get_label to get labels without html?
March 14, 2019 at 11:34 AM in reply to: ✅Showing decimal field leave extra zeros at the end. Any filter to solve that? #13724Camilo Mejia
ParticipantLooking at the code in meta-box/inc/functions.php I found the filter rwmb_the_value. That was the filter I was looking for. That filter is missing in the documentation.
March 14, 2019 at 7:06 AM in reply to: ✅Showing decimal field leave extra zeros at the end. Any filter to solve that? #13721Camilo Mejia
ParticipantI tried that previously but isn't working when used with Elementor dynamic fields.
March 13, 2019 at 8:49 AM in reply to: ✅Showing decimal field leave extra zeros at the end. Any filter to solve that? #13701Camilo Mejia
ParticipantThanks for your help, but that's not what I'm asking. What I need is to remove the extra leading zeros. With custom fields, we can use a filter to format the data as we need, but when using MB Custom Table, the filters aren't triggered, so I don't know how to format the data before showing to the user.
March 4, 2019 at 7:48 AM in reply to: ✅Showing decimal field leave extra zeros at the end. Any filter to solve that? #13541Camilo Mejia
ParticipantAny idea?
Camilo Mejia
ParticipantI found the problem, the key disappeared with the Form Maker plugin https://es.wordpress.org/plugins/form-maker/
Thanks
Camilo Mejia
ParticipantIt's working fine now. Thanks
Camilo Mejia
ParticipantHi. Any updates on this?
Camilo Mejia
ParticipantFarheen, I'm reporting a bug, not asking about how to do something. When you assign a term to a post, the count field in the term is incremented by one (I'm not talking about the ID field, terms has another field called count). That field track the number of times a term has been assigned to a post. That's a normal behavior of WordPress with the included post type and the categories and tags taxonomies.
When you create a custom post and a custom taxonomy and make a relation between them using Meta Box, all work as expected, except if you use the plugin MB Custom Table. With a custom table, the field count doesn't increment when you assign a term to a post.
-
AuthorPosts