Home › Forums › General Issues › How to show field only in the selected category? › Reply To: How to show field only in the selected category?
You need to check to see if what you’re showing is in the category, but you really don’t have enough information here for me to tell what you’re doing. Is this on a category archive page or a post in the archive?
Basically
if (/* Your condition to check if it's the right category here */) {
the_field('jobs', $this->post->ID);
}
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.