Retrieve the place category name

This topic contains 1 reply, has 2 voices, and was last updated by  Paolo 8 years, 5 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #61063

    pix3x
    Expired Member
    Post count: 155

    Hi, what is the right way to get a place category name with a GD post meta? I have managed to get the category ID (e.g. “596”) with “post_meta key=default_category”. But I need to get the actual name of the category (e.g. “Attractions”) in order to insert it in the form. Please advise.

    #61083

    Paolo
    Site Admin
    Post count: 31206

    Have you tried with get_term_by?

    https://codex.wordpress.org/Function_Reference/get_term_by

    Let us know how you went,

    Thanks

Viewing 2 posts - 1 through 2 (of 2 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket