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 TicketTagged: address, address one line, customize address
-
AuthorPosts
-
April 17, 2020 at 4:27 am #540790
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
PostalCodeWe would like all one line and the ability to insert a comma between city and state.
Address City, RegionApril 17, 2020 at 6:04 am #540797Hi 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?
April 17, 2020 at 6:15 am #540799This reply has been marked as private.April 17, 2020 at 6:20 am #540800Hi 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?
April 17, 2020 at 12:35 pm #540863Hello,
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.
April 17, 2020 at 3:43 pm #540900Hi 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?
April 18, 2020 at 12:52 am #541004Yes, the GD Archive Item template. Try adding the GD Post Address shortcode to the GD Archive item template.
April 18, 2020 at 7:14 am #541051Hey 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.
April 18, 2020 at 7:28 am #541055So 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.
April 18, 2020 at 5:20 pm #541105This reply has been marked as private.April 18, 2020 at 10:39 pm #541149Make 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.
April 20, 2020 at 2:36 am #541288From 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.
April 20, 2020 at 8:27 am #541322This reply has been marked as private.April 20, 2020 at 9:48 pm #541475HTML 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:April 21, 2020 at 2:51 am #541502This reply has been marked as private. -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket