stuart
Just loving programming without programming ?
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
reload map disables bootstrap modal js-wpv-addon-maps-reload-map
Started by: stuart in: Toolset Professional Support |
|
2 | 4 | 4 years ago | |
Highlight a view list item from a Google map click
Started by: stuart in: Toolset Professional Support |
|
2 | 9 | 4 years ago | |
Bootstrap modal not appearning when Toolset Maps in fullscreen mode
Started by: stuart in: Toolset Professional Support |
|
2 | 2 | 4 years, 1 month ago | |
views slider navigation using keys (keyboard left and right arrows)
Started by: stuart in: Toolset Professional Support |
|
2 | 4 | 4 years, 1 month ago | |
programaticaly use a link to set a map zoom level
Started by: stuart in: Toolset Professional Support |
|
2 | 3 | 4 years, 1 month ago | |
Click to direct streetview of location
Started by: stuart in: Toolset Professional Support |
|
2 | 3 | 4 years, 1 month ago | |
Capture the distance between two points and save to custom field
Started by: 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 | 4 years, 1 month ago | |
Maps distance filter using a custom field as the location
Started by: 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 | 4 years, 1 month ago | |
Displaying a view of related posts of a related post
Started by: stuart
in: Toolset Professional Support
Problem: Solution: |
|
2 | 3 | 4 years, 1 month ago | |
legacy views and maps documentation
Started by: stuart in: Toolset Professional Support |
|
2 | 4 | 4 years, 1 month ago | |
Calendar view update
Started by: stuart in: Toolset Professional Support |
|
2 | 3 | 4 years, 2 months ago | |
in Toolsets posts
Started by: stuart in: Toolset Professional Support |
|
2 | 2 | 4 years, 3 months ago | |
Wysiwyg – when using cred shortcode renders data when it shouldnt
Started by: stuart in: Toolset Professional Support |
|
2 | 2 | 4 years, 3 months ago | |
Dynamic data in GenerateBlocks/toolset content templates
Started by: stuart
in: Toolset Professional Support
Problem: I would like to be able to use the Dynamic field elements to show the various data fields from the custom post types within the GenerateBlocks element, however, they are not working and pulling data. Solution: According to our document, the "Dynamic Sources" feature isn't available in in "generateblocks" plugin, Currently, in your case, you can try the built-in WordPress heading block or Toolset heading block: https://toolset.com/block-item/heading/ Relevant Documentation: https://toolset.com/documentation/dynamic-sources-in-popular-blocks/ |
|
2 | 5 | 4 years, 4 months ago | |
conditional cred fields defualt values not submitting when hidden
Started by: stuart
in: Toolset Professional Support
Problem: Solution: You can find the proposed solution in this case with the following reply: Relevant Documentation: |
|
2 | 9 | 4 years, 4 months ago |