Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterCan you please try this fix and let me know if it works? I'll release new version when it's confirmed.
Anh Tran
KeymasterHi Dave,
I see the problem. At the moment, the conditions works only if both fields are in a same group clone. I see the module type is outside of the group where the editor belongs to. So it’s not working.
Anh Tran
KeymasterHi,
Thanks for your feedback. Let me check the issue.
Anh Tran
KeymasterHi Aaron,
Unfortunately, it's not possible yet :(.
Anh Tran
KeymasterYou mean including custom fields in the response of WP_Query?
If so, then it's not supported. That might lead to a query performance. I think it's better to do something like this:
$query = new WP_Query( $args ); while ( $query->have_posts() ) : $query->the_post(); $field_value1 = rwmb_meta( 'field_id1' ); $field_value2 = rwmb_meta( 'field_id2' ); // Do what you want. endwhile;Calling helper function or
get_post_metafunction inside a loop is a better way, sinceWP_Queryalready cache all post meta and they don't create any extra query to the database.Anh Tran
KeymasterHi Dave,
The condition looks simple and should work. Do you put them in different groups?
April 4, 2019 at 6:01 PM in reply to: ✅Image field has edit link even when user does not have edit capability #14062Anh Tran
KeymasterHi Ryan,
Thanks for your feedback. It's a good addition to the plugin. I'll do that in the next version.
Anh Tran
KeymasterHi Ryan,
This might be a generic problem for all forms. I think your suggestion is good. It can be done with some custom JS.
Anh Tran
KeymasterHi Sean,
You don't need to create nonces. They're already handled by the plugins.
Security is an important thing that we care about!
Anh Tran
KeymasterHi Vinny,
The
sanitizemethod removes all empty values in the group. Empty values are empty string and empty array.The
esc_metasimply overwrites parent's method, to make the value of sub-fields not escaped.They're not bugs and no need to fix them.
April 3, 2019 at 8:26 AM in reply to: ✅Shortcode in function not working for me after 4.17.0 update #14041Anh Tran
KeymasterHi Brian, can you send me a temporary admin account to check that? Maybe the problem is somewhere else.
Anh Tran
KeymasterHi Sergio, please follow this docs.
Anh Tran
KeymasterHi Sergio,
We're working on this. There is some progress, but not good enough. We're trying to finish as soon as we can.
April 2, 2019 at 7:36 PM in reply to: ✅Color Picker display issues (Background & Color Picker #14031Anh Tran
KeymasterHi,
I’ve updated the Columns and Tabs extensions with a fix for that. Can you please update and let me know if that works.
Anh Tran
KeymasterHi,
Because of the dynamic of the field, my patch works as follows:
- Do not set
requiredfor the input, instead setdata-required="1". - When users add or remove a file, run a JS callback to check if there's no uploaded files, then set the
requiredfield for the first input (we only need to set for the first one as it's okay to have at least one input not empty if there are many inputs).
I have no idea how your dynamic script works, maybe you get the the idea of how it works here and might change your script a little bit.
- Do not set
-
AuthorPosts