fabriceS
In den letzten 30 Tagen erstellte Support-Threads: 5
Lieblings-Forenthemen
This user has no favorite topics.
Forum Topics Created
Status | Thema | Supporter | Stimmen | Artikel | Aktualität |
---|---|---|---|---|---|
Post naming with related post titles
Gestartet von: 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 | vor 2 weeks, 2 days | |
Pass a value in JS to a field in form
Gestartet von: 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 | vor 2 weeks, 2 days | |
Add a link when a post is not available in the dropdown relationship field
Gestartet von: fabriceS in: Toolset Professional Support |
|
1 | 2 | vor 2 weeks, 5 days | |
link to a form with preselected taxonomy value
Gestartet von: fabriceS in: Toolset Professional Support |
|
1 | 6 | vor 4 weeks | |
add new preselected relationship post
Gestartet von: fabriceS in: Toolset Professional Support |
|
1 | 2 | vor 4 weeks | |
Editable links from a single CPT page
Gestartet von: fabriceS in: Toolset Professional Support |
|
1 | 7 | vor 1 months | |
Split: Add a link to a relationship form – change the placeholder "search for a post" on relationship form
Gestartet von: fabriceS in: Toolset Professional Support |
|
0 | 10 | vor 1 months | |
Add a link to a relationship form
Gestartet von: fabriceS in: Toolset Professional Support |
|
1 | 8 | vor 1 months | |
Split: Add a link to a relationship form – display title
Gestartet von: fabriceS in: Toolset Professional Support |
|
0 | 2 | vor 1 months | |
Add a link to a relationship form
Gestartet von: fabriceS in: Toolset Professional Support |
|
1 | 6 | vor 1 months, 2 weeks | |
Listing of at least 1 related item
Gestartet von: fabriceS in: Toolset Professional Support |
|
1 | 6 | vor 1 months, 3 weeks | |
Restrict access to the whole site
Gestartet von: 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 | vor 3 months, 1 weeks | |
trash or delete the post
Gestartet von: 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 | vor 3 months, 1 weeks | |
Define tab indexes to fields in a form
Gestartet von: fabriceS in: Toolset Professional Support |
|
1 | 2 | vor 3 months, 1 weeks | |
php script to retrieve intermediary post ID
Gestartet von: fabriceS in: Toolset Professional Support |
|
1 | 4 | vor 4 months, 1 weeks |