Home › Forums › Backend Issues (wp-admin) › Showing fields in page template and category.php › Reply To: Showing fields in page template and category.php
As long as you’re in “The Loop” (https://developer.wordpress.org/themes/basics/the-loop/) that is showing posts you show fields on a category page the same way you show them on a single page.
// the category page should have a loop
while (have_posts()) {
the_post();
// as long as you show the field here it should work
the_field('some-field-name');
}
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.