Home › Forums › General Issues › Portfolio Taxonomy: Names of Selcted Categories Under Custom Field › Reply To: Portfolio Taxonomy: Names of Selcted Categories Under Custom Field
I’ve read all of your comments, but I may not understand what you’re looking for.
I’m really not sure what you mean by “the linking option” in the pro version.
You are using a taxonomy field and you want to output links to the terms that have been selected?
If this is true then how you would code this depends on what you have the Return Value of the field set to. You would most likely be better off returning a term object.
$terms = get_field('media');
if ($terms) {
foreach ($terms as $term) {
?>
<a href="<?php echo get_term_link($term); ?>"><?php echo $term->name; ?></a>
<?php
} // end foreach
} // end if
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.