Home › Forums › ACF PRO › Clone single field name conflict › Reply To: Clone single field name conflict
All field names need to be unique on the page where they are used.
A clone field works in a similar fashion to a repeater field if you use the “Prefix Field Names” setting.
Let’s say that you have a clone field named “clone_field” and you are cloning a single field with the name “text_field”.
If you set Prefix Field Names to “No” then the value of this field will be stored in the DB with the meta_key of “text_field”. If you clone this multiple times on the same page then there will be multiple fields with the same name and this will lead to conflict between them.
If you set Prefix Field names to “Yes” then this field would be saved with a meta_key of “clone_field_text_field”, removing the conflict.
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.