get_term_link


get_term_link ( $term, $taxonomy = '' )

Parameters:
  • (object|int|string) $term The term object, ID, or slug whose link will be retrieved.
  • (string) $taxonomy Optional. Taxonomy. Default empty.
Returns:
  • (string|WP_Error) HTML link to taxonomy term archive on success, WP_Error if term does not exist.
Defined at:

Description

Generate a permalink for a taxonomy term archive.

Related Functions

edit_term_link, get_permalink, get_year_link, get_edit_term_link, get_term_feed_link

Top Google Results

User discussions

wpseek mobile