fabriceS
Admite hilos creados en los últimos 30 días: 5
Debates favoritos del foro
Este usuario no tiene debates favoritos.
Temas del foro creados
Status | Debate | Supporter | Voces | Mensajes | Caducidad |
---|---|---|---|---|---|
Post naming with related post titles
Iniciado por: fabriceS
en: 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 | 2 weeks, 1 days ago | |
Pass a value in JS to a field in form
Iniciado por: fabriceS
en: 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 | 2 weeks, 1 days ago | |
Add a link when a post is not available in the dropdown relationship field
Iniciado por: fabriceS en: Toolset Professional Support |
|
1 | 2 | 2 weeks, 4 days ago | |
link to a form with preselected taxonomy value
Iniciado por: fabriceS en: Toolset Professional Support |
|
1 | 6 | 3 weeks, 6 days ago | |
add new preselected relationship post
Iniciado por: fabriceS en: Toolset Professional Support |
|
1 | 2 | 4 weeks ago | |
Editable links from a single CPT page
Iniciado por: fabriceS en: Toolset Professional Support |
|
1 | 7 | 1 months ago | |
Split: Add a link to a relationship form – change the placeholder "search for a post" on relationship form
Iniciado por: fabriceS en: Toolset Professional Support |
|
0 | 10 | 1 months ago | |
Add a link to a relationship form
Iniciado por: fabriceS en: Toolset Professional Support |
|
1 | 8 | 1 months ago | |
Split: Add a link to a relationship form – display title
Iniciado por: fabriceS en: Toolset Professional Support |
|
0 | 2 | 1 months ago | |
Add a link to a relationship form
Iniciado por: fabriceS en: Toolset Professional Support |
|
1 | 6 | 1 months, 2 weeks ago | |
Listing of at least 1 related item
Iniciado por: fabriceS en: Toolset Professional Support |
|
1 | 6 | 1 months, 3 weeks ago | |
Restrict access to the whole site
Iniciado por: fabriceS
en: 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, 1 weeks ago | |
trash or delete the post
Iniciado por: fabriceS
en: 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, 1 weeks ago | |
Define tab indexes to fields in a form
Iniciado por: fabriceS en: Toolset Professional Support |
|
1 | 2 | 3 months, 1 weeks ago | |
php script to retrieve intermediary post ID
Iniciado por: fabriceS en: Toolset Professional Support |
|
1 | 4 | 4 months, 1 weeks ago |