Forum Replies Created
-
AuthorPosts
-
Aaron Kessler
ParticipantI donβt see why i should do so. Is there a reason why this should not work? Whatβs about fixing this in an upcoming version of Meta Box?
Aaron Kessler
ParticipantIt's local, but I created a test site on instaWP, and send you the credentials.
Aaron Kessler
ParticipantI switched the theme to twentytwentyfour, deactivated all plugins except Meta Box and installed the code snippets plugin in order to run my fields. The issue still persists
I uploaded a demo video on youtube: https://youtu.be/PA-6gau6ZDg, a higher resolution should be available soon.
Aaron Kessler
ParticipantAh! I missed that I also can define the
visibleorhiddenkey from MB Conditional Logic outside thefieldsarray. Works like expected! Thanks, Peter πAaron Kessler
ParticipantOh, I forgot to close the array in this example, but the question remains.
Aaron Kessler
ParticipantHello Peter,
that obvious. I should have added the sub-clause "in the future?" to
Is it possible that Meta Box will support a folder outside ABSPATH?
Please consider this as a feature request.
Aaron Kessler
ParticipantI also ran into this, seems not mentioned in the docs.
Aaron Kessler
ParticipantThanks. I defined separate meta boxes for the custom post type and the page template for now. If https://support.metabox.io/topic/or-logic-not-working/ is still not supported after 3,5 years, should it not be mentioned in https://docs.metabox.io/extensions/meta-box-conditional-logic/ ?
Aaron Kessler
ParticipantUps, I did choose the wrong forum. Sorry, but edits are not possible.
Aaron Kessler
ParticipantHey Peter, SVG upload is working as expected. I am using https://wordpress.org/plugins/svg-support/ as your article suggests. It is just the warning. The fields are defined as in https://support.metabox.io/topic/file-field-does-not-validate-or-remember-its-file-in-the-customizer/#post-44269, so no media library is involved.
Aaron Kessler
ParticipantThe unique_filename_callback parameters are not documented, nor is the return value in https://docs.metabox.io/fields/file/
November 14, 2023 at 3:01 PM in reply to: β what is the scope parameter of rwmb.runConditionalLogic() for? #43806Aaron Kessler
ParticipantAh, i got it https://github.com/wpmetabox/docsv2/commit/cae1bd42a749cc72b7538a3bfe1835d9fc39b7de, a notification about the updated docs would have been supportive.
November 14, 2023 at 2:56 PM in reply to: β what is the scope parameter of rwmb.runConditionalLogic() for? #43805Aaron Kessler
ParticipantAny updates on what the parameter should contain, Peter?
November 7, 2023 at 11:20 PM in reply to: β Call of /wp-admin/user-edit.php leads to Fatal error #43764Aaron Kessler
ParticipantIt does not matter to which role
'include' => [ 'relation' => 'OR', 'edited_user_role' => ['designated_role'], ],is set.
Just to make it more obvious: I think you should catch the case when someone tries to open /wp-admin/user-edit.php without any parameters. Without MB Include Exclude it shows: wp_die( __( 'Invalid user ID.' ) );
Aaron Kessler
ParticipantAlso, it isn't possible to compare two current field values when submitting.
If you want to compare two fields when submitting, please take a look at the Sanitization feature https://docs.metabox.io/sanitization/
That's contradictory, isn't it?
I don't understand why sanitization will help, since I can't guess the correct values. If the input value for an event start date is not equal or smaller than the value for an event end date, I could swap them, but it would be confusing to save values to the database that might be wrong, without notifying the user.Also, it isn't possible to compare two current field values when submitting.
It's not straight forward, but it is possible, as mentioned in my last post. The validation callback for a hidden field with a missing std value can compare two fields domElements. The missing std. value will prevent the form submit. You also need to initiate mutation observers observing the two input values and run rwmb.runConditionalLogic() (please note my other question regarding this function here) every time the value changes.
-
AuthorPosts