address in single line

This topic contains 12 replies, has 4 voices, and was last updated by  Nyi Win 4 years, 10 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #488625

    Nyi Win
    Free User
    Post count: 111

    Hi..

    I need to have the full address in single line, in the list of restaurants..

    I am using [gd_post_content key=’address’ ] but it is showing with line breaks..

    is there a easier way to format it other than modifying in the widget php script? (I am using v2)

    Thanks

    #488628

    Alex Rollin
    Moderator
    Post count: 27815
    #488637

    Nyi Win
    Free User
    Post count: 111

    Hi..

    I did use it.. but not showing in single line..

    [gd_post_address key=’address’ ]

    how do I put in the format.. %% etc etc.

    Thanks

    #488670

    Paolo
    Site Admin
    Post count: 31206

    The documentation linked by Alex about this looks clear to me, did you read it?

    To show the entire address:
    On one line: %%street%%, %%neighbourhood%%, %%city%%, %%region%%, %%country%%, %%zip%%

    Let us know how it goes.

    Thanks

    #488757

    Nyi Win
    Free User
    Post count: 111

    HI..

    I did mentioned that I tried it, and also said I dont know where to put that.

    On one line: %%street%%, %%neighbourhood%%, %%city%%, %%region%%, %%country%%, %%zip%%

    It doesnt say, if I am to put in the short code, or how to use the Tag..

    Q: WHERE do i put that %%street%%.. ???

    Q: inside the [ ] or any other thing??

    Thanks

    #488758

    Nyi Win
    Free User
    Post count: 111

    Do I put in the GD Archive Item page?? or do I put in the Widget php codes???

    #488760

    Alex Rollin
    Moderator
    Post count: 27815

    “list of restaurants” means archive item?
    Please watch the video here. Use the shortcode builder and fill in the form for the GD Post Address element. Click on the “?” in the form to see instructions.
    https://wpgeodirectory.com/docs-v2/templates/archive-item/

    #488761

    Nyi Win
    Free User
    Post count: 111

    Do I need to install any plugin for short code builder..

    I am not seeing any of those option with my WordPress builder..

    Please advise..

    Thanks..

    #488765

    Nyi Win
    Free User
    Post count: 111

    Hi..

    I am not finding this.. option..
    https://wpgeodirectory.com/docs-v2/geodirectory/shortcode-builder/

    or the screen shot attached..

    I have manually update the code, and it seem to have get the result I am after..

    but HOW DO I get those short code option.. I am just using the editor (block editor that is provided)..

    please advise..

    many thanks

    #488777

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    the shortcode builder is only available if using the Classic Editor.

    If you are using Gutenberg, you have blocks instead of shortcodes.

    In this case, you’ll need the GD > Post_meta block with “address” as key.

    I’m not 100% sure how we edit the address format with a block though, I asked the developers to let us know.

    Thanks for your patience,

    #488788

    Nyi Win
    Free User
    Post count: 111
    This reply has been marked as private.
    #489211

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    The “GD > Post Address” is available as a block also and you will see the address format options as block options.
    (see attached)

    Thanks,

    Stiofan

    #489217

    Nyi Win
    Free User
    Post count: 111

    yep.. its sorted for now..

    many thanks..

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

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

Open Support Ticket