Skip Navigation

[Resolved] adding maps feature to my listings

This support ticket is created 7 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 4 replies, has 2 voices.

Last updated by Beda 7 years, 10 months ago.

Assisted by: Beda.

Author
Posts
#413649
mapshelp.JPG

I am trying to: add a maps feature to the user posted listings.

I can not figure out how to add toolset maps to my classifieds theme.

Thanks!

#413691

To use the Toolset Maps Plugin you will need to install the Views Plugin, the Types Plugin and the Toolset Maps Plugin.

Then you will need to follow this Instructions:
https://toolset.com/documentation/user-guides/display-on-google-maps/

For this to work you will need to set up a Types Field "Address" and add it to the Content Type (post type) you want to use it on.

Then you probably also want the users to edit those addresses, correct?
In this case you will need to add the CRED SHortCode for the Address to your CRED Forms.

Once you created the Types Field, that CRED SHortCode is available in the CRED Form (eidt screen) in the GUI "Add Post Fields"

#413894

I am having difficulty figuring out where on my dashboard I can set up a Types Field "Address"

can you clarify where I can do this?

thanks

#413895
crederror1.JPG

ok, i figured it out but I am still having an issue.

Here is my code for the updated CRED form where the user posts their listing:

[cred_field field='address' post='listing' value='' urlparam=''][credform class="cred-form"]

[cred-field field="form_messages" value=""]

  • <label>[wpml-string context="cred-form"]Title[/wpml-string]</label>
    [cred-field field="post_title" post="listing" value=""]
  • <label>[wpml-string context="cred-form"]Category[/wpml-string]</label>
    [cred-field field="listing_cat" display="select" single_select="true"]
  • <label>[wpml-string context="cred-form"]Price[/wpml-string]</label>
    [cred_field field="price" post="listing" value="" urlparam="" placeholder="[classifieds-currency]"]

  • <label>[wpml-string context="cred-form"]Expiry Date[/wpml-string]</label>
    [cred_field field="expiry-date" post="listing" value="" urlparam=""]
  • <label>[wpml-string context="cred-form"]Location[/wpml-string]
    <small>[wpml-string context="cred-form"](type comma separated locations or use popular ones from the list below)[/wpml-string]</small>
    </label>
    [cred_field field="location"]
    [cred_field field="location_popular" taxonomy="location" type="show_popular"]
  • <label>[wpml-string context="cred-form"]Description[/wpml-string]</label>
    [cred-field field="post_content" post="listing" value=""]
  • <label>[wpml-string context="cred-form"]Main image[/wpml-string]</label>
    [cred-field field="_featured_image" value=""]
  • <label>
    [wpml-string context="cred-form"]Additional images[/wpml-string]
    </label>
    [cred_field field="image" post="listing" value="" urlparam=""]

<p class="submit-button">
[cred-field field="form_submit" value="[wpml-string context="cred-form"]Place an Ad[/wpml-string]" urlparam=""]
</p>
[/credform]

and then refer to the screenshot for what is appearing on the front end.

Is the top line of my code wrong?

this is what I see:
[[cred_field field='address' post='listing' value='' urlparam='']]

I am expecting to see the google address option.

Thanks

#414032

Please insert your CRED Fields/Shortcodes always INSIDE the default Form ShortCodes:

[credform class='cred-form cred-keep-original']

	[cred_field field='form_messages' value='']

          //HERE GO YOUR SHORTCODES AND OTHER FORM CONTENT

	[cred_field field='form_submit' value='Submit' urlparam='']

[/credform]

This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.