You are viewing an old revision of this post, from October 18, 2013 @ 00:49:28. See below for differences between this version and the current revision.

Get a taxonomy term object by it’s slug

Set up the object for the taxonomy term: [php]$taxonomy_term = get_term_by('slug', $taxonomy_term_slug, $taxonomy);[/php] Then you can use the object like this: [php]$taxonomy_term_name = $taxonomy_term->name;[/php] Here's everything available in the object: [php]term_id name slug term_group term_taxonomy_id taxonomy description parent count[/php]

Revisions

  • October 18, 2013 @ 00:49:28 [Current Revision] by PeterLugg
  • October 18, 2013 @ 00:49:28 by PeterLugg

Revision Differences

There are no differences between the October 18, 2013 @ 00:49:28 revision and the current revision. (Maybe only post meta information was changed.)

Tags: ,

No comments yet.

Leave a Reply