Support

Account

Home Forums ACF PRO Checking if Custom Post Type already Exists Reply To: Checking if Custom Post Type already Exists

  • Hi James,

    Yes I have this, however I don’t know how to return the error message to the page.

    I tried setting $GLOBALS[‘acf_validation_errors’] to a string inside the if ($the_post), but it simply doesn’t work. I also tried setting it to an array with one string.

    I’m using acf/validate_save_post filter. Should I use acf/validate_value