get_term_link


get_term_link ( $term, $taxonomy = '' )

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

Description

Generates 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