sebastianB-7
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 |
---|---|---|---|---|---|
Shortcodes for CPF in Conditional not working Divi Theme Builder
Started by: sebastianB-7
in: Toolset Professional Support
Problem: The customer was attempting to use a shortcode to display a custom field (CPF) conditionally within the Divi Theme Builder’s tab module. While the shortcode functioned correctly outside the Theme Builder, it only displayed the raw shortcode within the builder, failing to render the expected content. The issue appeared to stem from Divi’s Theme Builder potentially overwriting post variables required by shortcodes. Solution: A workaround was suggested due to the limitations in Divi’s handling of shortcodes within the Theme Builder. A custom PHP function was created and added to the theme's functions.php file to handle the conditional logic and output the custom field directly: function display_reisekosten_func() { if (get_post_meta(get_the_ID(), 'wpcf-reisekosten-pauschal-individuell', true) == '1') { return '<h2>Reisekosten</h2>' . do_shortcode('[types field="reisekosten-min-km"][/types]'); } } add_shortcode('display_reisekosten', 'display_reisekosten_func'); The shortcode [display_reisekosten] could then be used within a Divi Code Module to render the content conditionally. While not a guaranteed solution, this approach provided a viable alternative until Divi resolves the underlying issue. |
3 | 7 | 1 month, 3 weeks ago | ||
Custom Post Field – Type Image – .avif-Data
Started by: sebastianB-7
in: Toolset Professional Support
Problem: The customer created a custom post field for images but was unable to upload AVIF format files to the field, despite AVIF images being supported elsewhere in their WordPress media library. They requested a solution to enable AVIF uploads in Toolset's custom image field. Solution: A code snippet was provided to extend the valid image file types for Toolset, allowing AVIF images. The customer added this code to their theme’s functions.php file or within Toolset > Settings > function allow_avif_in_toolset( $valid_extensions ) { // Add AVIF to the list of valid extensions $valid_extensions[] = 'avif'; return $valid_extensions; } add_filter( 'toolset_valid_image_extentions', 'allow_avif_in_toolset' ); This code successfully enabled the AVIF format in the custom image field, allowing the customer to upload AVIF images as intended. |
2 | 3 | 2 months, 1 week ago | ||
WPML links of translated pages not showing invalid_tags_codes_0
Started by: sebastianB-7 in: Toolset Professional Support |
2 | 2 | 7 months ago | ||
Display Age from Date of birth with WPML
Started by: sebastianB-7 in: Toolset Professional Support |
2 | 4 | 7 months, 1 week ago | ||
Map marker size for better quality map marker
Started by: sebastianB-7
in: Toolset Professional Support
Problem: var scaledSize = new google.maps.Size(32, 32); You could change the size value in the actual plugin file if needed, but since this part of code is not filterable, it is not possible to change it with a hook for example, you'd have to edit the file itself. ( please note that you'll need to keep track of this edit, as future plugin updates will overwrite any changes ) I also checked that PNG files are shown in the map with the same size they've been uploaded, it is necessary to work with the image and upload the final version to use it. |
2 | 8 | 8 months, 2 weeks ago | ||
Change map marker on click and hover over listing items
Started by: sebastianB-7 in: Toolset Professional Support |
2 | 10 | 10 months ago | ||
Sort distance filter results from closest to most far away and output distance
Started by: sebastianB-7 in: Toolset Professional Support |
2 | 7 | 11 months ago | ||
legacy editor filter post distance using shortcode attribute
Started by: sebastianB-7 in: Toolset Professional Support |
2 | 7 | 11 months, 1 week ago |