FRANCESCOD7762
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 |
---|---|---|---|---|---|
Is there a Post type form field to assign a content template to a Custom Post ?
Started by: FRANCESCOD7762
in: Toolset Professional Support
Problem: The customer was working on a Custom Post Type ("Object") that represents artworks on their museum platform. They created specific content templates for different museums to cater to their unique display requirements. However, there was no option in the Custom Post Type Forms for the museum staff to assign the appropriate content template when creating or editing an artwork. The customer wanted to eliminate the need for staff to navigate the wp-admin editing page, which could lead to confusion and errors. Solution: We suggested utilizing a generic field in the form to enable the selection of a content template. The customer successfully implemented a dropdown select field, but encountered an issue where the selected option did not display when returning to the form. To resolve this, we provided a custom PHP function that retrieves the current template assigned to the post. The code snippet for the function is as follows: add_action('cred_save_data', 'my_save_data_action', 10, 2); function my_save_data_action($post_id, $form_data) { // Array of form IDs for which the action should be triggered $form_ids = array(21166, 18806); // Check if the current form ID is in the list if (in_array($form_data['id'], $form_ids)) { if (isset($_POST['select-template'])) { update_post_meta($post_id, '_views_template', sanitize_text_field($_POST['select-template'])); } } } After further testing, we recommended that for museum editors, the solution could be simplified by hardcoding the content template ID to ensure the correct template is always assigned. This change allowed for the expected functionality when creating or editing artworks. Relevant Documentation: |
2 | 16 | 1 month, 4 weeks ago | ||
Views stop working for logged out users
Started by: FRANCESCOD7762
in: Toolset Professional Support
Problem: Solution: These 2 options got to be turned off here, in order for the Toolset Views to be displayed properly in Pages and Templates. |
2 | 10 | 11 months, 3 weeks ago | ||
When updating to WordPress 6.4, Custom Types Editing Templates stop working
Started by: FRANCESCOD7762 in: Toolset Professional Support |
2 | 2 | 1 year ago | ||
Split: I neeed to set a Duplicate Post link on front end (no user access admin pages) – update post slug for duplicated post
Started by: FRANCESCOD7762 in: Toolset Professional Support |
2 | 13 | 1 year ago | ||
updating a custom post permalink/slug on a post form
Started by: FRANCESCOD7762 in: Toolset Professional Support |
2 | 5 | 1 year ago | ||
I neeed to set a Duplicate Post link on front end (no user access admin pages)
Started by: FRANCESCOD7762 in: Toolset Professional Support |
2 | 8 | 1 year ago | ||
cred-delete-relationship shortcode
Started by: FRANCESCOD7762 in: Toolset Professional Support |
2 | 5 | 1 year ago | ||
Login form triggeres fatal error
Started by: FRANCESCOD7762 in: Toolset Professional Support |
2 | 5 | 1 year, 3 months ago | ||
Impossible to connect Toolset plugin to toolset
Started by: FRANCESCOD7762 in: Toolset Professional Support |
2 | 4 | 1 year, 5 months ago | ||
Error when importing with Sheet Editor
Started by: FRANCESCOD7762 in: Toolset Professional Support |
2 | 7 | 1 year, 9 months ago | ||
Toolset plugin cannot connect to toolset
Started by: FRANCESCOD7762 in: Toolset Professional Support |
2 | 5 | 1 year, 9 months ago | ||
Not all media export/import all at once
Started by: FRANCESCOD7762 in: Toolset Professional Support |
2 | 4 | 1 year, 9 months ago | ||
wpv_error=retrieve_password_email_failure
Started by: FRANCESCOD7762 in: Toolset Professional Support |
2 | 4 | 1 year, 10 months ago | ||
WP Archive not working after deployment from staging to live
Started by: FRANCESCOD7762 in: Toolset Professional Support |
2 | 13 | 1 year, 10 months ago | ||
Toolset No Connection Message : persist evan after correct license insert
Started by: FRANCESCOD7762 in: Toolset Professional Support |
2 | 4 | 2 years, 6 months ago |