Changes between Initial Version and Version 2 of Ticket #27238
- Timestamp:
- 02/28/2014 04:47:10 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27238
-
Property
Version
changed from
trunk
to3.8
-
Property
Version
changed from
-
Ticket #27238 – Description
initial v2 1 1 Currently get_the_taxonomies() automatically wrap all taxonomies that they list in anchor tags: 2 2 {{{ 3 3 $links[] = "<a href='" . esc_attr( get_term_link($term) ) . "'>$term->name</a>"; 4 4 }}} 5 5 We would like to have the option to remove these, to display an unlinked list of taxonomies that are applied to a post: 6 6 {{{ 7 7 $list[] = $term->name; 8 8 }}} 9 9 The patch that I've attached includes a 'links' parameter to both the_taxonomies() and get_the_taxonomies(), set to true to not affect existing usage of these functions. If the parameter is set to false, only the taxonomies will be returned, and not their links.