Home › Forums › General Issues › Trying to display a category (taxonomy) field in the fronted › Reply To: Trying to display a category (taxonomy) field in the fronted
<?php the_field(‘plan_type’, ‘term_’.$term_id); ?> and <?php the_field(‘plan_type’, $term); ?> dont generate a content.
I think I don’t get it. Sorry 😉
Do I have to replace $term or $term_id by something else?
To make it clearer, plan_type is a field in ACF (a taxonomy field – i choosed category). Th field is inthe group field for the CPT. So ca category have to be choosed (different for every post).
I am trying to make the unique post (single post) template, showing the category choosed on the post unique page.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.