Return to Snippet

Revision: 52759
at November 1, 2011 12:11 by migueltavares


Initial Code
function getTheTerms($tax) {
	$args = array( 'taxonomy' => $tax, 'hide_empty' => 1 );
	$terms = get_terms($tax, $args);
    	foreach ($terms as $term) { ?>
		<li><a href="<?php echo get_bloginfo('wpurl'); ?>/taxonomyrewrite/<?php echo $term->slug; ?>/" title="<?php echo $term->name; ?>"><?php echo $term->name; ?></a></li>
    	<?php }
}//getTheTerms

Initial URL

                                

Initial Description

                                

Initial Title
[Wordpress] Get TERMS List

Initial Tags

                                

Initial Language
PHP