Skip Navigation

[Resolved] Elementor Toolset Integration: Breaking my custom fields’ content

This thread is resolved. Here is a description of the problem and solution.

Problem: I have a custom field that includes a third-party shortcode to display a media player. When I try to insert the shortcode in my Elementor template using the Dynamic content button, it doesn't work.

Solution: Try using a text module. Create the Types field shortcode by inserting the field in an unused Content Template, then copy + paste it into the text module.

Relevant Documentation:
https://toolset.com/documentation/user-guides/using-toolset-with-elementor-page-builder/

This support ticket is created 5 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Christian Cox 5 years, 2 months ago.

Assisted by: Christian Cox.

Author
Posts
#1197006
inside elementor.png
html results.png
custom field content.png

I am trying to move over from Advanced Custom Fields to Toolset, and unfortunately Toolset is breaking some functionality that was working perfectly with ACF, so I'm hoping you can help me find a solution.

What I was doing with ACF:
1- On my custom post "Streaming Video", it has a custom field "Embedded Shortcode", which contains a shortcode for the Brightcover Media Plugin we have installed.
2- In an Elementor template, I add a text element, and choose Dynamic Content, and in the ACF section, choose the "Embedded Shortcode" field, so that the shortcode is pulled and placed in the text element.
3- I use a script to generate the hundreds of pages we need for all our videos, filling in the the shortcode automatically and using the Elementor template.
4- Everything worked perfectly.

To switch to Toolset.
1- I recreated the custom post and custom fields, and modified my script to use the new types, then reimported all our data.
2- In the Elementor template, in the text element, I now use the Toolset option to select the "Embedded Shortcode" custom field.

The problem:
1- While ACF didn't seem to affect the value in the custom field, Toolset's Elementor Integration is for some reason stripping out stuff from either the shortcode or after it is executed.

In the attached images you can see what I'm talking about

custom field content: shows an example of the shortcode we have.
inside elementor: shows that I'm selecting the field via dynamic content in Elementor.
html results: shows a comparison between the normal code output (either from pasting the shortcode directly into a page, or from using ACF's Elementor integration to pull the custom field), and below it in the image is what Toolset is doing to the shortcode output, stipping out a huge chunk of it.

I'd love some help, since it'd be great to ditch ACF and fully switch over to Toolset.

#1197553

Hi, Toolset's integration with Elementor's Dynamic content menu is still fairly new. It works best with fields that store simple data. As an alternative, have you tried inserting the Types field shortcode in a Text element? Basically create a Toolset Content Template and use the Fields and Views button above the main content editor to insert the Types field. The system will generate a shortcode and insert it in the template for you. Copy that shortcode and paste it into a Text element to see if this approach fixes the shortcode rendering issue. You can delete the Content Template or keep it around for future use.

#1197573

Awesome! Didn't think to try that and it works.

Just a quick other question: On my custom post, I mistakenly had assigned a template to them all. Even when I change the template usage (removing the custom post from it) all the posts are still set to the template and their content is not showing.

Instead of going in manually in to each one and updating the template, how I change them all back to having no template?

#1197574

Actually, I see the meta_key for it in wp_postmeta, so I cleared it out for that post_type. Thanks for all your help!

#1198197

Great, thanks for the update.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.