You're doing it correct @its_me. The latter, `get_term_by()` would be the best way, In my opinion <s>, as I believe `get_category_by_path` uses `get_term_by`, just prepopulating the taxonomy to be `category`</s>.