Skip to content

Instantly share code, notes, and snippets.

@Dexterstat
Created January 14, 2014 08:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dexterstat/8415156 to your computer and use it in GitHub Desktop.
Save Dexterstat/8415156 to your computer and use it in GitHub Desktop.
Get terms taxonomy for post
$varobj = get_the_terms( get_the_ID (), "judet" );
foreach($varobj AS $key => $value )
{
$arr[] = $value->name;
}
/*
stdClass Object
(
[term_id] =>
[name] =>
[slug] =>
[term_group] =>
[term_order] =>
[term_taxonomy_id] =>
[taxonomy] =>
[description] =>
[parent] =>
[count] =>
[object_id] =>
)
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment