I need to rename a post’s title on front-end submit using two related items: the parent from a 1-to-many relationship (@movie-delivery.parent) and a company selected via a related field (company-to-deliver), but I don’t know how to fetch both related post titles in my PHP hook.
Solution:
Use the cred_submit_complete hook (relationships are fully saved then): get the parent with toolset_get_related_post( $post_id, 'movie-delivery', 'parent' ) → get_the_title(); get the company either from the post reference field ID via get_post_meta( $post_id, 'wpcf-company-to-deliver', true ) or, for true many-to-many, from toolset_get_related_posts( $post_id, 'company-to-deliver', ['role_to_return'=>'parent','limit'=>1] ); then concatenate and update with wp_update_post().
I want to auto-fill a hidden Toolset form field (cast-position) with the value of the ?pos URL parameter + 1, so that each new character entry gets the next position in the list. Using cred_before_save_data prevented the form from saving.
Solution:
Keep the field hidden and not required, then use the cred_save_data hook (after validation) to update the meta field
Or alternatively, use front-end JS with the form’s JS editor to populate the hidden input:
I have a "Show More" shortcode that works on page load, but after filtering a Toolset View with AJAX the shortcode stops working because the replaced HTML loses its initialization.
Solution:
Wrap the Show-More initialization in a function and call it both on page load and again after Toolset’s AJAX events (js_event_wpv_parametric_search_results_updated and js_event_wpv_pagination_completed). Add this script in the View’s JS editor or your theme’s JS file so the Show-More feature re-initializes whenever the results refresh.
I set up a View with radio button filters using “AJAX results update when visitors change any filter values,” but no results showed when selecting options. I also needed to remove a dash that appears before child category names in the filter.
Solution:
The AJAX issue was caused by a custom animation class setting transparency to zero; removing that fixed the results display. To remove the dash from child category labels, add a custom JavaScript function to strip leading “- ” characters from the labels, and run it both on page load and after AJAX updates.