Use an Array of Taxonmomies in a List
-
Hi,
I am trying to make a list in my footer that pulls multiple taxonomies. I have been able to get a list from one taxonomy using the following code.
$taxonomy = taxonomy; $queried_term = get_query_var($taxonomy); $terms = get_terms($taxonomy, 'slug='.$queried_term); if ($terms) { echo '<ul>'; foreach($terms as $term) { echo '<li><a href="'.get_term_link($term->slug, $taxonomy).'">'.$term->name.'</a>('.$term->count.')</li>'; } echo '</ul>'; }
Does anyone know how to get an array for multiple taxonomies?
Any help would be much appreciated.Thanks,
Steve
- The topic ‘Use an Array of Taxonmomies in a List’ is closed to new replies.