Forum Replies Created
-
AuthorPosts
-
SteveKeymaster@pupppet– It looks like that may be a bug with the file field type. We’ll look into that.
As for limiting the number of files a user can upload, you can use the
limitvalidation rule. However, this doesn’t trigger until after the user saves their data. This is because Piklist uses the server to validate data, not javascript. The server is way more secure than javascript.
SteveKeymaster@marcus– Thank you for moving this fix into Piklist Checker. The latest version, which now support Windows, is on WordPress.org >
SteveKeymaster@cyclissmo– Since Piklist does everything the WordPress way, you can usually use standard WordPress functions to retrieve your data. Good job!
SteveKeymaster@ehoanshelt– One other thing to look at. Make sure that the duplicate field is not actually TWO fields with the same name on that page.
SteveKeymasterThe keys are what’s stored in the database. Currently there is no way to automatically pull the values.
You will have to write a function to do this.
To make this easier you can place the field or the choices in a separate function and cal it in the admin and front end.
Let me know if that makes sense.
SteveKeymaster@ehoanshelt– I just tested your code by changing the two taxonomies to category and post_tag, and it worked beautifully, with both the WP.org and Beta versions of Piklist.
Try clearing your cache, or another browser to see if that fixes it.
SteveKeymasterGlad it works… and thanks for posting the code snippet! Closing this ticket.
SteveKeymaster@justin– If you can’t
print_rthe$field, then there’s definitely an issue! 😉Where are you placing this code? It should be in your custom plugins main file, or your theme’s
functions.phpfile.Feel free to zip up your entire plugin/theme and email to [email protected] if you’re still having issues.
SteveKeymaster@izeut– I just sent you an invite to join our translation team. Email me at [email protected] if you have any questions. Thank you so much for your help!
February 23, 2015 at 11:30 pm in reply to: Validation of multiple custom fields at the same time? #3350
SteveKeymaster@hirschbrat– The beta just got emailed to you. Let us know if you still have issues.
SteveKeymaster@justin– Yup, it is!
$field['value'][0]If you include
print_r($field);in yourmy_validate_uniquefunction you can see everything that gets returned.
SteveKeymaster@izeut– Also, instead of using a custom message in another language, would you like to help translate Piklist into your language?
SteveKeymaster@izeut– Welcome to the Piklist community!
You format is perfect… you’re just using the wrong validation function. Try replacing
limitwithrange. Here’s a list of the validation functions in Piklist and their descriptions. -
AuthorPosts