When creating a new post or editing an existing post via the front end, the 'Paper content' field disappears. The issue persists even after disabling all plugins except Toolset. The problem affects both the production and staging environments.
Solution:
The issue was identified as a conflict with the "CookieYes | GDPR Cookie Consent" plugin. Disabling this plugin resolved the problem. Ensure that "CookieYes" is inactive if it is not needed, as it can cause conflicts with Toolset forms.
I have a form using AJAX without the WordPress Media Library manager and want to limit the upload file size. Despite following the documentation and various threads, my current code does not restrict file uploads to the desired size limit.
Solution:
Ensure the validation code runs only for the specific form and use the $_FILES array to check the file size correctly:
add_filter('cred_form_validate', 'my_validation', 10, 2);
function my_validation($error_fields, $form_data) {
// Ensure this code runs only for the specific form
$form_id = 12345; // Replace with your actual form ID
if ($form_data['id'] != $form_id) {
return $error_fields;
}
list($fields, $errors) = $error_fields;
// Validate 'wpcf-beleg-ausgabe' field
if (isset($_FILES['wpcf-beleg-ausgabe']) && $_FILES['wpcf-beleg-ausgabe']['size'] > 10000) {
$errors['wpcf-beleg-ausgabe'] = 'FILE SIZE TOO BIG';
}
// Validate 'wpcf-beleg-einnahme' field
if (isset($_FILES['wpcf-beleg-einnahme']) && $_FILES['wpcf-beleg-einnahme']['size'] > 10000) {
$errors['wpcf-beleg-einnahme'] = 'FILE SIZE TOO BIG';
}
return array($fields, $errors);
}
The customer inquired whether it is possible to create content templates using Elementor.
Solution:
We confirmed that Toolset is compatible with Elementor and that it is indeed possible to create content templates using Elementor. We provided a tutorial link with a step-by-step guide, including screenshots, to assist the customer in setting it up.