The customer was upgrading their site running Toolset Version 2.3.5 to the latest version while also updating PHP to version 7.x. They needed guidance on the upgrade path and encountered issues displaying custom fields with legacy PHP code after the update. Despite the fields being visible in the Classic Editor, embedding Toolset shortcodes in the editor caused site crashes when running PHP 8.2.
Solution:
Solution:
1- Upgrade Path: It was recommended to deactivate and delete the old version of Toolset, update PHP to version 7.x, install the new Toolset version, and import custom fields if necessary. The customer's data was safely retained in the WordPress database throughout this process.
2- Custom Field Display:
To replicate the legacy PHP logic, it was advised to use Toolset Views with conditional shortcodes, such as:
3- Compatibility Notes: The customer was advised to update the PHP retrieval methods to align with current standards and replace older code constructs. The errors reported were related to the use of the continue statement and outdated plugin code.
I want to create a custom search for the "Service" posts based on the "Audience" taxonomy. The search is functional with radio buttons, but I would prefer to display clickable visual buttons for the options rather than standard radio buttons.
Solution:
Toolset doesn’t provide a PHP filter to alter the radio button HTML directly. However, you can achieve a visual button style using CSS and Javascript to replace standard radio buttons.
I want to use Toolset to create a list of posts with filters on a site built with Elementor Pro. Since Toolset Views is a legacy version, I’m unsure how to create a View with Toolset Blocks and integrate it into Elementor.
Solution:
Toolset Blocks content cannot be used directly within Elementor, but you can still create Views using the legacy mode in Toolset Blocks. Enable legacy Views by following these steps:
- Go to "Toolset > Settings > General".
- Under "Editing experience", check "Show both the legacy and Blocks interface and let me choose which to use for each item I build".
- Reload the page, and go to "Toolset > Views" to create your view in legacy mode.
You can then add this View to Elementor using the shortcode. Toolset currently has no plans to remove the legacy Views functionality, so it remains a reliable option.