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!
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"
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
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
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]