Home › Forums › Backend Issues (wp-admin) › Conditional branch to "Preview Size" on edit screen in diffrent custon post type › Reply To: Conditional branch to "Preview Size" on edit screen in diffrent custon post type
You can use an acf/prepare_field filter to alter any setting of a field.
To see setting of a field to know what you need to change use the ACF export to PHP tool so that you can see the structure of the image field.
You would need to conditionally change the right setting based on the post type being edited. I don’t have any code handy for hour you would do this. You may need to look at the values in $_GET when adding a new post.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2022 Advanced Custom Fields.