Home › Forums › ACF PRO › Clone single field name conflict › Reply To: Clone single field name conflict
Thanks very much for the quick reply! If you don’t mind, I just need a little further clarification and then I think I will understand…
Let’s use your example and say that instead of naming my fields “clone_field” and “text_field”, I named both of them “text_field”. I do not use Prefix Field. Also, I do not have multiple clone fields on the page, just the one clone field called “text_field”. Will I still get a name conflict because I have named my clone field the same name as the field I cloned (both called “text_field”)? Seems like that is what was happening to me.
And then the other clarification I’m looking for, using the same scenario above, if I do name the field being cloned “text_field” and the clone field “clone_field”, in the template do I use get_field( ‘text_field’ )? I think this is actually what worked for me, I was just confused because after going through ACF documentation I was thinking I would use get_field( ‘clone_field’ ).
Hopefully my question is clear and not confusing! Thanks in advance for taking the time to help me!
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!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN
— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.