I now put this on one line in order to echo a part of an url: <?php $term = get_field('manufacturer'); if( $term ): ?><?php echo $term->name; ?><?php endif; ?>
Is there any way to shorten the code any further? I just need the taxonomy name.
for example, would it be a problem to pull the “if” statement out?
Thanks a lot!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users