Home › Forums › General Issues › ACF fields assigned to show on attachments, Media (Edit) but not on (Upload)
Is there a way to allow ACF fields to appear as a part of the Media Upload flow in the same way that they can appear for images already in the Media Library. This would be very helpful since it would give users access to custom fields earlier.
I have attached 2 screen shots one of an image selected that was previously uploaded and saved and another of the initial image upload. The images show the differences in the fields available in the attachment details panel.
Hi, Sorry for asking again.. When will this function be available?
Hello. I have same problem.
Can you tell me how this can be fixed? Or when you have new version of this awesome plugin? 🙂 Thanks.
+1
Any estimate on when this will be fixed for 4? Is this fix included in 5 beta?
The attachment_fields_to_edit method in the acf_everything_fields class doesn’t add custom fields if $screen is not empty.
if( !empty($screen) )
{
return $form_fields;
}
After uploading a file the attachment_fields_to_edit method is called but WordPress returns a WP_screen object for get_current_screen(). The screen object has an id of ‘async-upload’. I think ACF should probably continue (i.e. add the custom fields that have been configured) for this screen
Replace
if( !empty($screen) )
{
return $form_fields;
}
with
if( !empty($screen) && $screen->id != 'async-upload' )
{
return $form_fields;
}
Also; would this be possible to display the fields on Bulk Edit screens?
The topic ‘ACF fields assigned to show on attachments, Media (Edit) but not on (Upload)’ is closed to new replies.
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.