fabriceS
Support threads created in the last 30 days: 9
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Post naming with related post titles
Started by: fabriceS
in: Toolset Professional Support
Problem: 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(). Relevant Documentation: https://toolset.com/documentation/programmer-reference/cred-api/ https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/ |
|
1 | 4 | 1 week, 4 days ago | |
Pass a value in JS to a field in form
Started by: fabriceS
in: Toolset Professional Support
Problem: 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: Relevant Documentation: https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data |
|
1 | 4 | 1 week, 4 days ago | |
Add a link when a post is not available in the dropdown relationship field
Started by: fabriceS in: Toolset Professional Support |
|
1 | 2 | 2 weeks ago | |
link to a form with preselected taxonomy value
Started by: fabriceS in: Toolset Professional Support |
|
1 | 6 | 3 weeks, 2 days ago | |
add new preselected relationship post
Started by: fabriceS in: Toolset Professional Support |
|
1 | 2 | 3 weeks, 2 days ago | |
Editable links from a single CPT page
Started by: fabriceS in: Toolset Professional Support |
|
1 | 7 | 3 weeks, 6 days ago | |
Split: Add a link to a relationship form – change the placeholder "search for a post" on relationship form
Started by: fabriceS in: Toolset Professional Support |
|
0 | 10 | 4 weeks ago | |
Add a link to a relationship form
Started by: fabriceS in: Toolset Professional Support |
|
1 | 8 | 4 weeks, 1 day ago | |
Split: Add a link to a relationship form – display title
Started by: fabriceS in: Toolset Professional Support |
|
0 | 2 | 4 weeks, 1 day ago | |
Add a link to a relationship form
Started by: fabriceS in: Toolset Professional Support |
|
1 | 6 | 1 month, 1 week ago | |
Listing of at least 1 related item
Started by: fabriceS in: Toolset Professional Support |
|
1 | 6 | 1 month, 2 weeks ago | |
Restrict access to the whole site
Started by: fabriceS
in: Toolset Professional Support
Problem: I want to restrict access to the entire site except the login page, but Toolset Access only allows controlling specific parts of the site, not full-site access. Solution: Use a third-party plugin like Restricted Site Access (https://wordpress.org/plugins/restricted-site-access/) to block the entire site except the login page; then use Toolset Access alongside it to control internal access by user role. Compatibility between the two should be tested on your specific setup. Relevant Documentation: |
|
1 | 4 | 3 months ago | |
trash or delete the post
Started by: fabriceS
in: Toolset Professional Support
Problem: I want to add a front-end delete button for a post that has multiple relationships, and I need to understand the difference between “Trash the post” and “Delete the post,” as well as whether related relationships are also removed. Solution: “Trash the post” moves it to the WordPress Trash and allows recovery; “Delete the post” permanently removes it. In both cases, Toolset removes the relationships linked to the deleted post, but the related posts themselves are not deleted unless custom code using before_delete_post and toolset_get_related_posts() is implemented. Relevant Documentation: https://toolset.com/forums/topic/best-practice-when-deleting-posts-related-to-other-posts/ |
|
1 | 2 | 3 months ago | |
Define tab indexes to fields in a form
Started by: fabriceS in: Toolset Professional Support |
|
1 | 2 | 3 months, 1 week ago | |
php script to retrieve intermediary post ID
Started by: fabriceS in: Toolset Professional Support |
|
1 | 4 | 4 months, 1 week ago |