andreaV-4
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
| Status | Topic | Supporter | Voix | Publications | Nouveauté |
|---|---|---|---|---|---|
|
Image slider change image format
Commencé par : andreaV-4
in: Toolset Professional Support
Problem: I am using the Toolset Slider block to display images from a custom post type, but I cannot select the image size. As a result, the slider loads unoptimized, full-size images, causing slow loading times. The srcset attribute is missing, so smaller images are not being used for different viewports. Solution: Ensure that the Crop Image option is enabled in the Toolset Slider block settings. This allows WordPress to generate multiple image sizes and use the srcset feature, ensuring optimized images are loaded based on the device screen size. Relevant Documentation: https://toolset.com/course-lesson/displaying-images-with-toolset/ https://toolset.com/course-lesson/creating-sliders-with-dynamic-post-content/ |
|
1 | 8 | Il y a 1 year, 3 months | |
|
Filter view date from month and/or year
Commencé par : andreaV-4
in: Toolset Professional Support
Problem: The customer created a Custom Post Type (CPT) with a date field and wanted to allow users to filter posts by month and/or year using a select list. The Toolset view filters did not support filtering by only month or year because the date field is queried as a timestamp. Solution: We explained that it’s not possible to filter by month or year directly using Toolset’s default date field filters. As a workaround, we suggested creating separate custom fields for the month and year, which could then be used in the filter. We provided a code example using the save_post hook to automatically populate these custom fields based on the selected date whenever a post is created or edited:
function auto_generate_month_year_from_date_field($post_id) {
// Check if it's the correct post type
if (get_post_type($post_id) == 'YOUR_POST_TYPE') {
// Retrieve the date field
$date_field = get_post_meta($post_id, 'wpcf-YOUR-CUSTOM-DATE-FIELD-SLUG', true);
if (!empty($date_field)) {
// Convert the timestamp to a DateTime object
$date_obj = DateTime::createFromFormat('U', $date_field);
// Check if date creation was successful
if ($date_obj) {
// Extract the year and month
$year = date_format($date_obj, "Y");
$month = date_format($date_obj, "m");
// Update the custom fields with year and month
update_post_meta($post_id, 'wpcf-YEAR-FIELD-SLUG', $year);
update_post_meta($post_id, 'wpcf-MONTH-FIELD-SLUG', $month);
}
}
}
}
add_action('save_post', 'auto_generate_month_year_from_date_field', 101);
Relevant Documentation: |
|
2 | 6 | Il y a 1 year, 9 months | |
|
Content templates with Elementor
Commencé par : andreaV-4
in: Toolset Professional Support
Problem: 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. Relevant Documentation: |
|
2 | 2 | Il y a 1 year, 9 months | |
|
Multiple filter into view for date
Commencé par : andreaV-4 in: Toolset Professional Support |
2 | 2 | Il y a 1 year, 10 months | ||
|
Recovery CPT theme
Commencé par : andreaV-4 in: Toolset Professional Support |
2 | 2 | Il y a 2 years | ||
|
URL canonical error
Commencé par : andreaV-4
in: Toolset Professional Support
Problem: I'm receiving reports indicating that the hreflang annotations in my custom post type "corsi" contain URLs that are not canonical. The URLs include parameters such as https://example.it/corso/nomecorso?subject=test. I need to set the canonical URL to https://example.it/corso/nomecorso. Solution: Toolset doesn't provide direct customization for canonical URLs in the page head. Consider using an SEO plugin that allows setting canonical URLs. You can get started here: https://www.hallaminternet.com/avoiding-the-seo-pitfalls-of-url-parameters/ https://clicknathan.com/web-design/wordpress-canonical-urls-done-right/ |
|
2 | 2 | Il y a 2 years, 2 months | |
|
do_shortcode muiltiple cred_form problem with WPML
Commencé par : andreaV-4 in: Toolset Professional Support |
|
2 | 4 | Il y a 2 years, 5 months | |
|
WP_Query custom post type and custom field
Commencé par : andreaV-4 in: Toolset Professional Support |
|
2 | 2 | Il y a 2 years, 6 months | |
|
Mansory view
1
2
Commencé par : andreaV-4 in: Toolset Professional Support |
|
2 | 18 | Il y a 2 years, 6 months | |
|
Include and sorting custom post type shared
Commencé par : andreaV-4 in: Toolset Professional Support |
|
2 | 2 | Il y a 2 years, 7 months | |
|
Dynamic selection menu multilanguage
Commencé par : andreaV-4 in: Toolset Professional Support |
|
2 | 6 | Il y a 3 years, 2 months | |
|
Translate CRED form with WPML
Commencé par : andreaV-4 in: Toolset Professional Support |
2 | 3 | Il y a 3 years, 3 months | ||
|
Cred form live conditional group and field
Commencé par : andreaV-4 in: Toolset Professional Support |
|
2 | 3 | Il y a 3 years, 3 months | |
|
Section relations field menu – show label
Commencé par : andreaV-4 in: Toolset Professional Support |
|
2 | 2 | Il y a 3 years, 3 months | |
|
Field date and time
Commencé par : andreaV-4 in: Toolset Professional Support |
|
2 | 8 | Il y a 3 years, 3 months |