Home › Forums › Add-ons › Repeater Field › Custom Template in repeater field › Reply To: Custom Template in repeater field
Hi @nitin-godhani,
Thanks a lot for reaching out to us.
Looking at your code everything should work just fine. However, you will need to ensure that the global $post_id variable in use the correct one from your post/page.
It is important that you make sure that your code is within the WP Loop, otherwise, you will need to provide a second parameter on the functions for the post id.
Kindly check out the following samples that might be able to help you out.
https://www.advancedcustomfields.com/resources/repeater/
Let me know how it goes.
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.