Home Forums Front-end Issues Custom Taxonomy in ACF Reply To: Custom Taxonomy in ACF

  • Hi Jonathan!

    I switched the return value to Term Object as your reco but the code did not work. Anyways, I fixed it already and here’s my working code:

    						/* sub specialty */
    						if (get_field('sub_specialty') != '') { ?>
    						<strong>Sub specialty.:</strong>
    $terms = get_field('sub_specialty');
    foreach ($terms as $term){
    $subspec[] = '<a href="'.$term->slug.'" name="'.$term->slug.'" alt="'.$term->anem.'">'. $term->name .'</a>';
    echo implode(' / ', $subspec);
    ; ?>
    						<br />
    						<?php } else { ?>
    						<?php } ?>

    I added some codes too according to how I want it to be displayed.

    Thanks for replying btw. =]

    God bless!! ;]