stuart
Just loving programming without programming ?
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
Toolset Setting "Custom Code snippets" search not working
Commencé par : stuart in: Toolset Professional Support |
2 | 3 | Il y a 3 années et 1 mois | ||
reload map disables bootstrap modal js-wpv-addon-maps-reload-map
Commencé par : stuart in: Toolset Professional Support |
2 | 4 | Il y a 3 années et 5 mois | ||
Highlight a view list item from a Google map click
Commencé par : stuart in: Toolset Professional Support |
2 | 9 | Il y a 3 années et 5 mois | ||
Bootstrap modal not appearning when Toolset Maps in fullscreen mode
Commencé par : stuart in: Toolset Professional Support |
2 | 2 | Il y a 3 années et 5 mois | ||
views slider navigation using keys (keyboard left and right arrows)
Commencé par : stuart in: Toolset Professional Support |
2 | 4 | Il y a 3 années et 5 mois | ||
programaticaly use a link to set a map zoom level
Commencé par : stuart in: Toolset Professional Support |
2 | 3 | Il y a 3 années et 5 mois | ||
Container video background
Commencé par : stuart in: Chat Support |
1 | 2 |
Il y a 3 années et 5 mois
|
||
Click to direct streetview of location
Commencé par : stuart in: Toolset Professional Support |
2 | 3 | Il y a 3 années et 5 mois | ||
Capture the distance between two points and save to custom field
Commencé par : stuart
in: Toolset Professional Support
Problem: I have two address fields, one in a parent post type and one in a child post type. When a new child post is created, I would like to calculate the distance between the two addresses and save that distance in another custom field in the child post type. Solution: You can use the cred_submit_complete hook to trigger custom code with the shortcode toolset-maps-distance-value to calculate the distance between two addresses. Use the update_post_meta function to store that distance in another custom field. add_action('cred_submit_complete', 'tssupp_calc_parent_child_distance',10,2); function tssupp_calc_parent_child_distance($post_id, $form_data) { $forms = array(123, 456); $relationship_slug = 'book-chapter'; $parent_address_slug = 'book-address-1'; $child_address_slug = 'chapter-address-1'; $child_distance_slug = 'chapter-single-line-1'; $unit = 'km'; $decimals = 2; // if a specific form if ( in_array( $form_data['id'], $forms ) ) { $related_post = toolset_get_related_post( $post_id, $relationship_slug, 'parent' ); if( $related_post ) { $child_location = get_post_meta( $post_id, 'wpcf-'.$child_address_slug, true ); $parent_location = get_post_meta( $related_post, 'wpcf-'.$parent_address_slug, true ); if( $child_location && $parent_location ) { $distance = do_shortcode("[toolset-maps-distance-value location='" . $child_location . "' postmeta='wpcf-". $parent_address_slug . "' postmeta_id='" . $related_post . "' unit='" . $unit . "' decimals='" . $decimals . "']"); update_post_meta( $post_id, 'wpcf-'.$child_distance_slug, $distance ); } } } } Relevant Documentation: |
2 | 6 | Il y a 3 années et 6 mois | ||
Maps distance filter using a custom field as the location
Commencé par : stuart
in: Toolset Professional Support
Problem: Get the distance value from related "EOI" post(current-client-address field) and related "site" posts(site-address field). Solution: You can follow our document to customize the [toolset-maps-distance-value] shortcode, for example: Relevant Documentation: |
2 | 10 | Il y a 3 années et 6 mois | ||
Displaying a view of related posts of a related post
Commencé par : stuart
in: Toolset Professional Support
Problem: Solution: |
2 | 3 | Il y a 3 années et 6 mois | ||
legacy views and maps documentation
Commencé par : stuart in: Toolset Professional Support |
2 | 4 | Il y a 3 années et 6 mois | ||
Calendar view update
Commencé par : stuart in: Toolset Professional Support |
2 | 3 | Il y a 3 années et 7 mois | ||
Access Control Group Content tempalte redirect – with Custom post Type & Plugin
Commencé par : stuart in: Toolset Professional Support |
2 | 5 | Il y a 3 années et 7 mois | ||
in Toolsets posts
Commencé par : stuart in: Toolset Professional Support |
2 | 2 | Il y a 3 années et 8 mois |