Home › Forums › Front-end Issues › Using have_rows() in different template not working › Reply To: Using have_rows() in different template not working
Hello… when referencing an ACF field, sometime you need to pass in the “post/page/CPT ID”… other times it assumes *current* post/page.
It depends where you are creating the data… if it’s an Options Page, pass in “option” as the second parameter, like:
<p><?php the_field('field_name', 'option'); ?></p>
Hope that helps!
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.