So i am ready to throw in my custom post type a bunch of custom fields.
All these fields need specific handling for their input and validation.
- Numeric fields
- WYSIWYG editor
- Datepicker e.t.c
I know i can install Types or ACF and get going but i want to know how to code the above.
I have been searching for a "wordpress-way" of doing this but i cant find any.
Looking at the
wp enqueue script documentation i saw the default libraries that are included out of the box in WP and i saw Jquery UI.
So i wonder, How i would format and validate my custom fields manually?
- Add inline styles from a UI library like Jquery
- And include jquery validation to handle my validation
Is this the preferred way and best practice or am i missing something here?