How do I get term data associated with the current post, where the result is not wrapped in HTML?

I’d like to get term data from a custom taxonomy associated with the current post.

I can do this with get_the_term_list($id $custom_taxonomy).
However, this returns the data I want wrapped in HTML.

I’d like to get the data but not wrapped in HTML.

I presume this means using a function that returns an object, and from that point I’d work with the object. get_terms looks like a likely candidate. But I haven’t been able to craft the parameters correctly.

How exactly can I get the data I want?

Read more here:: How do I get term data associated with the current post, where the result is not wrapped in HTML?

Leave a Reply

Your email address will not be published. Required fields are marked *