Problem:
The customer wants to add a JSON-LD script with schema.org/Movie structure to their single movie page. This JSON-LD should include information from the single post and custom fields created with Toolset, for better SEO and to help search engines understand the content.
Solution:
We suggested using Toolset Views to create a JSON output. This involves using the classic version of the view editor to structure the JSON output according to the schema.org/Movie structure. Steps include:
Enable the classic view editor in Toolset settings.
Create a new view in Toolset -> Views.
Replace the default wpv-loop tags with the necessary JSON structure in the view loop editor.
Ensure the "Disable the wrapping DIV around the View" option is selected for correct JSON formatting.
An example structure was provided to illustrate how to format the JSON output within the view.
Additionally, the customer can use the view's API function get_view_query_results to build and display the JSON output with PHP if more customization is needed.
I have designed a toolset map using a view loop output in the WordPress blocks editor. I want to insert this map into pages designed with the Divi page builder, but I am unsure how to do this since the Divi Toolset Views module only allows selecting the view providing data to the map.
Solution:
Enable the legacy views which are shortcode-based to add the map and view to the Divi builder. Go to "Toolset > Settings > General", check "Show both the legacy and Blocks interface and let me choose which to use for each item I build", reload the page, then go to "Toolset > Views" to edit the views.
I am building a recruitment agency website using the DIVI theme and Toolset. I want to add Toolset elements to the homepage, which is built with the DIVI builder. I see that the DIVI builder has a Toolset views module, but I am unsure if using the legacy Toolset Views is the best approach.
Solution:
Enable the legacy views mode to add Toolset elements to the DIVI builder. Go to "Toolset > Settings > General", check "Show both the legacy and Blocks interface and let me choose which to use for each item I build", reload the page, and then go to "Toolset > Views" to edit and use views shortcodes in the DIVI builder.