Home › Forums › Front-end Issues › Display custom taxonomy name › Reply To: Display custom taxonomy name
Thank you for your assistance. This is what I have now. The “Uncategorized” word is now gone, but the field is displaying blank. I’m missing something and just don’t know where.
Modeling Type: <?php $modelingType = get_field('modeling_types'); $term = get_term($modelingType, $taxonomy = 'modeling_types'); echo esc_html($term->name); ?>
This was the display before:Modeling Type: Uncategorized
This is the display now: Modeling Type:
Thank you!
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.