Home › Forums › General Issues › Get value from custom field taxonomy › Reply To: Get value from custom field taxonomy
To you have your taxonomy field set to return Term Objects or Term ID? include
must be an array of Term IDs.
You can override the field setting and get just the IDs
<?php $zielgruppe = get_field( 'zielgruppe', false, false ); ?>
Your field may also be returning only a single value and you need an array
if ($zielgruppe) {
if (!is_array($zielgruppe)) {
$zielgruppe = array($zielgruppe);
}
....
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.