1. We let members to create post by toolset form with google map. We have done display google map with marker in content view but we would like to show google map address automatically as pop up on the google map marker when audience click on the the marker. Please let me know what should we put on the pop up content
2. We would like to create slider or show multiple image in the content view (single post) instead of changing the whole design by "toolset view". Please let know how i can be done.
For Q1 you can use the wpv-post-field shortcode to output your address field in conjunction with the wpv-map-marker shortcode you use to add the marker.
See the example below, where my address field has a slug of 'location' and so is referred to in Views shortcodes by 'wpcf-location'.
For a single post you want to show multiple images (possibly as a slider). Where are the images stored? Do your posts have an image repeating custom field?
1. How if I don't want to add additional field for location? Because members are able to put the market directly into the map, there is no point to ask them to fill in the location again.
2. The images are upload by members via toolset form. Our 1st option is to show the image as slider , however if it cannot be done, then we plan to show multiple small size images which able to enlarge (pop up). Just imagine we want our custom single post like woocommerce single product page.
As the second question is not related to the first, I need to ask you to re-post it in a new thread, sorry for the inconvenience. We try to stick to one issue per thread to help other users researching similar problems in the forums. You are welcome to assign the new thread directly to me and I will be happy to help.
Regarding the first question:
- Your users can publish a custom post via a CRED form, and that form includes an address field, yes?
Or have I misunderstood and the address comes from somewhere else?
Because if they enter an address in the form then the post that is created will have the address stored as a custom field against it, and you can use that field in your content template to display the post as I described above.
Say your CRED form includes an address field with a slug of "my-address".
Then that field is available to your content template with the shortcode [wpv-post-field name='wpcf-my-address'].
(Types custom fields are stored in the database with a prefix of 'wpcf-' and Views uses the full name including the prefix to refer to the custom field.)
If you have set things up differently than I have understood then please describe where the address for the map marker comes from. I'm using the same field name in the wpv-post-field shortcode as the wpv-map-marker shortcode.