Home › Forums › General Issues › Let users add to select field choices › Reply To: Let users add to select field choices
thanks!
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
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.