Home › Forums › Front-end Issues › Hide a specific field frontend › Reply To: Hide a specific field frontend
1. Have you added acf_form_head()
and does your theme contain the required wp_footer()
call?
2. There are several methods to do this. The first is that acf_form()
lets you specify a list of fields that should be shown instead of showing all of them. The second is that you can use an acf/prepare_field
filter https://www.advancedcustomfields.com/resources/acf-prepare_field/. You can check to see if the form is shown on the front end and if it is return false
from your filter and the field will not be shown.
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.