Skip Navigation

[Resolved] Appending custom Toolset fields in Elementor

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

Problem:

The issue here is that the user wanted to add a prefix to their custom fields when they are adding it to a page.

Solution:

the only way I can see adding the Pre or Post text is by doing the following.

pre-[types field='my-field'][/types]

The same is also true for the post text.

This support ticket is created 6 years, 5 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 replies, has 2 voices.

Last updated by bobW-3 6 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#1109566

I have created a Businesses custom Type, with fields for Address, City, Province etc.
I am using Elementor Pro to create a custom template single view of my custom post type.
I am able to input the custom fields as dynamic content and it works great.
What I would like to do is combine two (or more?) of my Toolset fields into a single template element.
Ie. The city field and the province field should appear as one with a comma and space separating them like this City, Province
I see there is an advanced section where you can add pre-text and post-text to your fields content. Could this somehow be used to achieve what I'm looking for?

Thanks - keep up the great work!!

#1109715

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Bob,

Thank you for contacting our support forum.

the only way I can see adding the Pre or Post text is by doing the following.

pre-[types field='my-field'][/types]

The same is also true for the post text. Unless this is not exactly what you are referring to. If not please let me know.

Thanks,
Shane

#1110556
Screen Shot 2018-09-18 at 8.54.02 AM.png
Screen Shot 2018-09-18 at 8.44.23 AM.png

Thank you for getting back to me Shane.

I tested your theory by adding your example with my field name as the "after" text to my city field like this ", [types field='province'][/types]" where "province" was my field name. In the Elementor builder it seems like it's not working (see screen captures) as it just displays the code and not the actual province. When you update the template and preview the actual page, however it is working beautifully.

Thanks for you help with this. This opens up a number of possibilities for styling custom content.