WordPress.org

Forums

Meta Box
Number validation in custom post type (1 post)

  1. rebelit
    Member
    Posted 1 year ago #

    I have a project where I have added a couple of number fields to a custom post type and notice that no validation occurs.

    If I use demo.php to add the demo fields to a normal post validation occurs on those.

    So I changed demo.php to show the metaboxes on the custom post type (changing nothing else) but number field validation does not occur when the demo fields are added to the custom post type.

    How do I hook up the validation to the custom post type?

    Thanks

    https://wordpress.org/plugins/meta-box/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic