Change address template in gd_listings shortcode output

This topic contains 1 reply, has 2 voices, and was last updated by  Alex Rollin 4 years, 9 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #504052

    ten9itservices
    Expired Member

    Using the GD > Post Address widget, I was able to change the address template to output in this format – %%street_br%% %%city%%, %%region%% %%zip%% – rather than each address part displaying on a new line.

    Example
    <icon> 123 Any Street
    City, Region Zip

    I have the Address custom field extra output location set to: Details page sidebar, Listings page, Map bubble. However, in each of these locations the address displays with each part on a new line

    Example
    <icon> Address: 123 Any Street
    City
    Region
    Zip
    Country

    As far as I can tell there is no way to change the output for these other locations. Is there a filter I’m not aware of?

    Thanks for your help.

    #504084

    Alex Rollin
    Moderator
    Post count: 27815

    To change the format displayed in the ‘listings’ display, you will need to add the GD Post Address element to the Archive Item template. Once you add it, then go back to the address custom field and disable the ‘listings’ output.

    https://wpgeodirectory.com/docs-v2/templates/archive-item/

    For the Details page, you can adjust the Details page template, or use a GD Post Address widget in the details page sidebar.

    https://wpgeodirectory.com/docs-v2/templates/details/

    For the map bubble, that is a PHP template. Read more about customizing that here: https://wpgeodirectory.com/docs-v2/faq/customizing/#map-bubble

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