Get Neighbourhood Name

This topic contains 3 replies, has 3 voices, and was last updated by  Jon Masters 6 years ago.

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

Open Support Ticket
  • Author
    Posts
  • #495182

    Jon Masters
    Free User
    Post count: 3

    Hi
    I am attempting to echo out the Neighbourhood meta field name from the post.

    Everything else works fine e.g $gd_post->city, $gd_post->price etc, but when I use $gd_post->neighbourhood is gives me the neighbourhood slug and not the name.

    $gd_post->neighbourhood_slug also gives me the slug.

    Any ideas how I can get just the name please?

    Thanks

    Jon

    #495272

    Paolo
    Site Admin
    Post count: 31211

    Hi Jon,

    a developer is been alerted and he will get back to you as soon as he comes back online.

    Thanks for your patience,

    #495300

    Kiran
    Moderator
    Post count: 7069

    Hello Jon,

    Neighbourhood value stored as a slug in database. So post meta for neighbourhood & $gd_post->neighbourhood shows slug instead of name.

    You can use GD > Post Address or following shortcode to display nieghbourhood name.

    [gd_post_address show="value" address_template="%%neighbourhood%%"]

    Kiran

    #495314

    Jon Masters
    Free User
    Post count: 3

    Brilliant. Thanks Kiran

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount