Support

Account

Home Forums General Issues Conditional display on specific fields based on post type Reply To: Conditional display on specific fields based on post type

  • To do this you are going to need to create acf/prepare_field filters for the fields in question.

    You should be able to use the same filter for multiple fields. In your filter you will need to get the post_type that is being added or edited. This information may be available in global $post or you may need to look in $_GET for the values (I’m not sure if the values will be in global $post when creating a new post.

    You check the post type and then either return the $field or return false depending on if you want the field to be used or not.