Home › Forums › General Issues › Re-using fields in different groups? Can they simply have the same name? › Reply To: Re-using fields in different groups? Can they simply have the same name?
“As long as a field name is not duplicated there isn’t an issue.”
Sorry, For clarification over the use of Field Name, I’m not talking about the label.
Example…
Field Group One would contain:
Field Label “Wattage”, Field Name “wattage”, Field Key “field_01xtine3m”
Field Label “Max DB”, Field Name “max_db”, Field Key “field_z9tebe9n5”
Field Label “Frequency”, Field Name “frequency”, Field Key “field_59ddt5qec”
Field Label “Avg Temp”, Field Name “avg_temp”, Field Key “field_n5bew9te9”
Field Label “Impedance”, Field Name “impedance”, Field Key “field_nti5bxte7”
Location Product Type is equal to “b”
Assigned to
Field Group Two would contain:
Field Label “Wattage”, Field Name “wattage”, Field Key “field_tit501xqec”
Field Label “Max DB”, Field Name “max_db”, Field Key “field_ebz9tne3m”
Field Label “Frequency”, Field Name “frequency”, Field Key “field_de59d9n5”
Field Label “Pressure”, Field Name “pressure”, Field Key “field_te57t501x”
Field Label “Inductance”, Field Name “inductance”, Field Key “field_te9915s0”
Location Product Type is equal to “c” or Product Type is equal to “d”
Field Group Three would contain:
Field Label “Wattage”, Field Name “wattage”, Field Key “field_ti9d9n5tec”
Field Label “Max DB”, Field Name “max_db”, Field Key “field_eb501z9xq”
Field Label “Frequency”, Field Name “frequency”, Field Key “field_dee3m5tn”
Field Label “Strand Count”, Field Name “strand_ct”, Field Key “field_dfa36xtn”
Field Label “Channels”, Field Name “channels”, Field Key “field_dtn6ga3x”
Location Product Type is equal to “e”
Would this work fine or lead to issues down the road?
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.