get_term_by()
returns object by default. Which should end up in Catchable fatal error: Object of class stdClass could not be converted to string
if you try to echo it. Likely you have errors suppressed.
Try var_dump( $term );
instead of echo
.
get_term_by()
returns object by default. Which should end up in Catchable fatal error: Object of class stdClass could not be converted to string
if you try to echo it. Likely you have errors suppressed.
Try var_dump( $term );
instead of echo
.