the_taxonomies ‘template’ parameter

I checked out this post and saw that WP 3.1 allows you to add the parameter “template” to your ‘the_taxonomies()’ function – this param doesn’t exist in the codex.

The default looks like this:

Read More
 the_taxonomies(array('template' => '%s: %l')); 

Where the output is “Taxonomy Name: Taxonomy Tag.” If I change it to:

 the_taxonomies(array('template' => '%s %l')); 

, it removes the colon, but if I remove the %s then it only gives back the Taxonomy Name.

What I’m basically looking for is to just print out what appears to be the %l or the Taxonomy Tag.

Any ideas on this? Thanks in advance!

Related posts

Leave a Reply

3 comments

  1. If somebody wants to display the taxonomies without the taxonomy label and without a link then you can add term_template to the args array like the following:

    <?php the_taxonomies(array('template' => '% %l', 'term_template' => '%2$s')); ?>
    

    This will just output the names of taxonomy without a hyperlink.