andreaV-4
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 |
---|---|---|---|---|---|
Filter view date from month and/or year
Started by: 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 | 3 months, 3 weeks ago | ||
Content templates with Elementor
Started by: 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 | 3 months, 3 weeks ago | ||
Multiple filter into view for date
Started by: andreaV-4 in: Toolset Professional Support |
2 | 2 | 4 months, 1 week ago | ||
Recovery CPT theme
Started by: andreaV-4 in: Toolset Professional Support |
2 | 2 | 6 months, 3 weeks ago | ||
URL canonical error
Started by: 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 | 8 months, 2 weeks ago | ||
do_shortcode muiltiple cred_form problem with WPML
Started by: andreaV-4 in: Toolset Professional Support |
2 | 4 | 11 months, 4 weeks ago | ||
WP_Query custom post type and custom field
Started by: andreaV-4 in: Toolset Professional Support |
2 | 2 | 1 year ago | ||
Mansory view
1
2
Started by: andreaV-4 in: Toolset Professional Support |
2 | 18 | 1 year ago | ||
Include and sorting custom post type shared
Started by: andreaV-4 in: Toolset Professional Support |
2 | 2 | 1 year, 1 month ago | ||
Dynamic selection menu multilanguage
Started by: andreaV-4 in: Toolset Professional Support |
2 | 6 | 1 year, 8 months ago | ||
Translate CRED form with WPML
Started by: andreaV-4 in: Toolset Professional Support |
2 | 3 | 1 year, 9 months ago | ||
Cred form live conditional group and field
Started by: andreaV-4 in: Toolset Professional Support |
2 | 3 | 1 year, 9 months ago | ||
Section relations field menu – show label
Started by: andreaV-4 in: Toolset Professional Support |
2 | 2 | 1 year, 9 months ago | ||
Field date and time
Started by: andreaV-4 in: Toolset Professional Support |
2 | 8 | 1 year, 9 months ago | ||
save_post and custom field
Started by: andreaV-4 in: Toolset Professional Support |
2 | 5 | 1 year, 9 months ago |