Address in Listings Shortcode on One Line

This topic contains 24 replies, has 3 voices, and was last updated by  Chris 4 years, 7 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #540790

    Chris
    Full Member
    Post count: 18

    Hello, We are trying to put the address field as it is located in the map bubble, listing page, and sidebar on one line.

    The most important of these presently is the placement on the listing page. Right now it shows as this.
    Address
    City
    Region
    PostalCode

    We would like all one line and the ability to insert a comma between city and state.
    Address City, Region

    #540797

    Kor
    Moderator
    Post count: 16516

    Hi Chris,

    Thanks for your post. You can use the method here https://wpgeodirectory.com/docs-v2/design/maps/#gd_post_address to reformat the addresses. Could you give it a try and see if it helps?

    #540799

    Chris
    Full Member
    Post count: 18
    This reply has been marked as private.
    #540800

    Kor
    Moderator
    Post count: 16516

    Hi Chris,

    Thanks for your post. Could you share your Website WP admin access here in private reply so that we could check your GD setup?

    #540863

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    To show the address on one line when using the GD Post Address widget or shortcode you can use this template:

    https://wpgeodirectory.com/docs-v2/design/maps/#gd_post_address

    For the map popup we have a snippet here:

    https://wpgeodirectory.com/docs-v2/templates/map-bubble/

    You will need to change the address in each place it is displayed.

    We are populating our main listings page with the GD_Listings shortcode (see code below) and including the address field by adding “Listings Page” as a location in the Places Settings on the form field. Since there are not address formatting settings in that area we can’t change it.

    You cannot change the address format when showing it in GD Output Location. You will need to use GD Post Address instead.

    #540900

    Chris
    Full Member
    Post count: 18

    Hi Alex,
    Thanks for the reply. Again I have reviewed the link for GD_post_address, however it does not provide the information we need. We need to change the formatting shown on our main listings page that is populated with the GD_Listings shortcode.

    Perhaps I’m misunderstanding how this could be accomplished when showing the listings, but I know it can as it was done on Listimia. https://demos.addictedtoweb.com/listimia-gd/

    We don’t want to use Listimia as we have a theme already we are using for many things. However, they must have changed the code somewhere…

    I am sure this shortcode has been built with a template or some code somewhere that could be modified. Is there a specific PHP file or template file we can modify that will change this?

    #541004

    Alex Rollin
    Moderator
    Post count: 27815

    Yes, the GD Archive Item template. Try adding the GD Post Address shortcode to the GD Archive item template.

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

    #541051

    Chris
    Full Member
    Post count: 18

    Hey Alex,

    I see now that the page you referenced does make changes to the listings on the page we are hoping to. But now I have two quick questions.

    1. As soon as I made a change to the address and hit save, the images went crazy big. See attached for code and issue. How can we fix?

    2. What other pages does changing the GD Archive Item Template effect? I’m curious so we can keep an eye out for issues on other pages.

    #541055

    Chris
    Full Member
    Post count: 18

    So I managed to get the image contained by changing the wp bakery set up for the page from 1 column to 3 columns with the infobox with the code in the first column. Seems like that shouldn’t be the answer, but it worked.

    New issue in addition to the old questions. There is a TON of extra spacing mixed throughout our listing for items that aren’t there. See image. How can we remove this without removing the potential for those items to show if they are in fact included? Like featured for example.

    #541105

    Chris
    Full Member
    Post count: 18
    This reply has been marked as private.
    #541149

    Alex Rollin
    Moderator
    Post count: 27815

    Make sure to use HTML/Raw/Code modules instead of text modules. Text modules add extra space and formatting you don’t need.

    The GD Archive item is used anywhere you see small listings. It is the small template, and the details template is the large format.

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

    #541288

    Chris
    Full Member
    Post count: 18

    From our tests adding the code to a RAW HTML block versus a text block results in the shortcodes themselves displaying on the page. Not the listings.

    The plugin said compatible with WP Bakery, but there doesn’t seem to be an option in there for displaying the shortcodes that is truly compatible.

    #541322

    Chris
    Full Member
    Post count: 18
    This reply has been marked as private.
    #541475

    Alex Rollin
    Moderator
    Post count: 27815

    HTML block should work.

    If we need to check the settings please share credentials in a private reply AND a link to the WP Backend edit page for the template so we know where to look.

    WordPress Credentials
    WP Admin Login URL:
    WP Admin Username:
    WP Admin Password:

    #541502

    Chris
    Full Member
    Post count: 18
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 25 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