Home › Forums › Add-ons › Repeater Field › Setting Repeater Defaults Per Page Template › Reply To: Setting Repeater Defaults Per Page Template
Hi Keith,
Thank you so much for this, the function works.
How would this be used for CPT? I tried is_singular() and the template name.
There is a minor issue with the conditional statements, in that working off page ID to grab the template, the page needs to be saved first. Ideally I need these fields to be set before content is added if possible.
Any ideas how would this be adapted to run the function on template change?
Rob.
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.