Home › Forums › ACF PRO › disable media library on front end form › Reply To: disable media library on front end form
This seems to finally have been fixed in ACF Pro Version 5.2.0, for the most part. Send a never-valid ID as the post_id
for new posts (like -5
) and then check for the when you save the post. You’ll need to manually save the post, or add to the acf/pre_save_post
filter as described here: http://www.advancedcustomfields.com/resources/using-acf_form-to-create-a-new-post/
It doesn’t work when sending a string as the post_id
still using acf_form
, but when editing you’re sending an int so it seems to work.
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.