Home › Forums › General Issues › Many of the same clone in another set of fields › Reply To: Many of the same clone in another set of fields
Excellent point!
I went with group / but I wouldn’t have seen that prefix side-effect until I tried it out. I don’t use template part / because I’m stubborn and it’s ugly… but my components certainly use a generic variable that needs to stay stable. I usually create a little get-example-data.php
file to organize the fields into variables so I can use them in many contexts.
<example-card>
<h2 class='title'><?=$title?></h2>
</example-card>
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.