Home › Forums › ACF PRO › Custom post type question? › Reply To: Custom post type question?
All post templates, even single post templates, should contain the WP main loop.
while (have_posts()) {
the_post();
// all post specific code goes here
}
You should see an example of this if you look at any of the single post templates included in your starter theme.
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.