[wp-trac] [WordPress Trac] #27238: Add parameters to the_taxonomies() and get_the_taxonomies() to deselect linking

WordPress Trac noreply at wordpress.org
Fri Feb 28 17:19:22 UTC 2014


#27238: Add parameters to the_taxonomies() and get_the_taxonomies() to deselect
linking
---------------------------+------------------------------
 Reporter:  davidjlaietta  |       Owner:
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Taxonomy       |     Version:  3.8
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------

Comment (by hereswhatidid):

 The 'term_template' argument would enable not only limiting what is
 displayed but adding more custom elements to the output.  Here's an
 example with the term name only wrapped in a span:


 {{{
         $args = array(
                 'term_template' => '<span>%2$s</span>'
         );
         get_the_taxonomies( null, $args );
 }}}

 and one that would open the category links in a new window:

 {{{
         $args = array(
                 'term_template' => '<a href="%1$s"
 target="_blank">%2$s</a>'
         );
         get_the_taxonomies( null, $args );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27238#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list