Advanced Custom Fields plugin provides fields for dynamic data – one of them is Taxonomy Field Type.
If you would like to list the values the user selects, you could try doing it with this code.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<?php $terms = get_field('custom_taxonomies'); if ($terms) { echo '<h1>Taxonomies:</h1> <p>'; $term_names = array(); foreach ($terms as $term) { $term_names[] = $term->name; } echo implode(' | ', $term_names),'</p>'; } ?> |