Add City Name To Listing Page

This topic contains 23 replies, has 4 voices, and was last updated by  Guust 4 years, 9 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #505637

    jesspena
    Free User
    Post count: 16

    Hello GD, is there a way to add the city name to the Search Page, & Listing Pages?

    I would also like to remove the Red New and words -Place Description

    Please see attached image.

    I’m using WordPress 5.2.2
    Geo Directory Version 2.0.0.66

    Thank you very much for any help you can provide, once this is complete i’ll purchase the plugin for multiple cities.

    Jess

    #505657

    Guust
    Moderator
    Post count: 29970

    The city name can be added with the Location Manager, with this shortcode:

    [gd_post_address address_template="%%city%%"]

    To remove the NEW, delete this shortcode at GD > Settings > Pages > Archive Item > Edit:

    [gd_post_badge key='post_date' condition='is_less_than' search='+30' icon_class='fas fa-certificate' badge='New' bg_color='#ff0000' txt_color='#ffffff' alignment='left']

    To change “place description”, change the field label at Places > Settings > Custom fields > Description

    Thanks

    #505797

    jesspena
    Free User
    Post count: 16

    Thanks, I got two out of three, I was unable to do this.

    The city name can be added with the Location Manager, with this shortcode:

    I’m a newby so can you provide the path, please?

    #505798

    Alex Rollin
    Moderator
    Post count: 27815

    Please share WP Admin site credentials in a private reply so we can take a look at the settings.

    If that is the Archive item the city should show in the address if you are using GD Output location to show the address.

    #505812

    jesspena
    Free User
    Post count: 16
    This reply has been marked as private.
    #505816

    Guust
    Moderator
    Post count: 29970

    I can see the city name is now added, see image.

    Re upload error, see https://wpgeodirectory.com/docs-v2/geodirectory/settings/import-export/#not-a-valid-csv-file

    If you want to add the city name to the Archive pages, then go to
    GD > Settings > Pages > Archive Item page > Edit
    and add this shortcode:

    [gd_post_address address_template="%%city%%"]

    Review https://wpgeodirectory.com/docs-v2/geodirectory/shortcode-builder/ to learn more about how to adjust shortcodes.

    Thanks

    #505872

    jesspena
    Free User
    Post count: 16

    Thanks but I’m still having issues. I want the city name added to the Search page, however, I need the order correct.
    I would like it to appear like this
    Address:
    City:
    ZipCode:
    State:
    OR
    Address:
    City: State: Zip:

    Thank you all for being patient!!

    #505877

    jesspena
    Free User
    Post count: 16

    Thanks, the plugin worked for the Import.
    But now there’s another issue.
    1.On the Search Page I have a huge gap with what appears to be an image and link..what are they and how do I remove them? You can see the image for clarification.

    2. After an import do you have to login and set the address on the map for every location?

    Thank you for much appreciated assistance!

    Jess

    #505879

    jesspena
    Free User
    Post count: 16

    I have those same links on the GD Location Page also see attached image.

    #505882

    Guust
    Moderator
    Post count: 29970

    Use the shortcode builder on the GD Archive Item to add addresses to the Listings on Search pages. Try these shortcodes, adjust as required:

    [gd_post_address show="icon-label-value" address_template="%%city_br%% %%zip_br%% %%region%%"]
    [gd_post_address show="icon-label-value" address_template="%%city%%, %%zip%%, %%region%%"]

    1.On the Search Page I have a huge gap with what appears to be an image and link..what are they and how do I remove them?

    The blank parts are because you have not uploaded the images yet, for example this is where one of the images is supposed to be:
    …/wp-content/uploads/2019/08/california-solar-roof.jpg
    but it does not exist.

    2. After an import do you have to login and set the address on the map for every location?

    That is not necessary if you are using the correct address in your CSV file and you have set up your Google API key correctly.

    I have those same links on the GD Location Page also see attached image.

    The blank parts are because you have not uploaded the images yet.

    Thanks

    #505886

    jesspena
    Free User
    Post count: 16

    Thank you for the great responses, how would do I import locations without the images?

    #505890

    Guust
    Moderator
    Post count: 29970

    Do not enter any data in the image columns.
    Thanks

    #505947

    jesspena
    Free User
    Post count: 16

    My map in populate on the website, however, I see this error “Must Provide Google Map Api for Search Location via google map” See attached Image.
    I have added the API Key but it’s still there, also, when I import locations they don’t appear unless I go in each and Set the Address in each location.

    #505978

    Guust
    Moderator
    Post count: 29970

    That message comes from your “WP Multi Store Locator Free” plugin.
    If you are not using that plugin it may be better to turn it off, using more than one plugin that uses Google maps often results in conflicts.
    Make sure to follow the links at GD > Settings > General, see image.
    You may have to create a new key using those links to make sure the key is valid for all the different APIs.

    https://wpgeodirectory.com/docs-v2/integrations/google/

    Thanks

    #505981

    jesspena
    Free User
    Post count: 16
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 24 total)

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

Open Support Ticket