Created
January 14, 2014 08:43
-
-
Save Dexterstat/8415156 to your computer and use it in GitHub Desktop.
Get terms taxonomy for post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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