Support

Account

Home Forums Front-end Issues ACF Form Unique Value Validation Reply To: ACF Form Unique Value Validation

  • There is also a problem with this that I missed

    
    $post_type = get_post_type($post_id);
    

    You are going to have to hard code the post type instead of depending on getting the value. If the post type is empty then it defaults to “post” in the query.