Shortcodes for city, neighbourhood, zipcode

This topic contains 3 replies, has 2 voices, and was last updated by  Guust 5 years, 2 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #470928

    vivek
    Full Member
    Post count: 246

    Hi, I want to insert these fields only (not the whole address) into the archive item template but [gd_post_meta key=”address’] inserts the whole address, and there are no parameters to choose the fields. Can you please guide me on this?

    #470931

    Guust
    Moderator
    Post count: 29970

    You can hide part of the address with CSS: https://wpgeodirectory.com/docs/common-styling-examples/#address

    Thanks

    #470932

    vivek
    Full Member
    Post count: 246

    Sure- thanks. Can do that for city and zip, but neighbourhood is not part of the address, so where can i get that from? thanks again!

    #470952

    Guust
    Moderator
    Post count: 29970

    Inspect the page code, and you will see “addressNeighbourhood” is used.
    So the CSS should be

    span[itemprop="addressNeighbourhood"] {display: none;}

    Thanks

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