[wp-trac] [WordPress Trac] #14156: Option to use name, in additon to slug and id in get_term_link() function
WordPress Trac
wp-trac at lists.automattic.com
Wed Jun 30 14:35:55 UTC 2010
#14156: Option to use name, in additon to slug and id in get_term_link() function
-------------------------+--------------------------------------------------
Reporter: sudar | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 3.0
Severity: normal | Keywords: taxonomy, get_term_link
-------------------------+--------------------------------------------------
Right now the get_term_link() function (in wp-includes/taxonomy.php) can
be used only with either term id or term slug.
It would be useful to provide an option to add name in addition to term id
and slug.
This function inturn uses get_term_by() function and it has the option to
provide term name, but the get_term_link() function doesn't have a way to
do this.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14156>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list