Skip Navigation

[Closed] Render a Gravity Forms shortcode inside a custom field

This support ticket is created 4 years, 7 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
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)

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 4 years, 7 months ago.

Assisted by: Christian Cox.

Author
Posts
#1671263

In the reply #1197533 ... ( https://toolset.com/forums/topic/shortcode-inside-custom-field-and-elementor/#post-1197533 ) ... is the custom field slug defined by toolset titled "smart-slider-3" OR is "smart-slider-3" the slug defined by this 3rd party slider too.

I am trying to accomplish the same thing referencing the Gravity Forms shortcode and am running into similar described issues that may be resolved with that clarification.

#1671265

Is the custom field slug defined by toolset titled "smart-slider-3" OR is "smart-slider-3" the slug defined by this 3rd party slider too.
Hi, I can see how it's confusing. Let me try to explain, since the author of the other ticket has not replied. Smart Slider 3 is the name of a slider plugin for WordPress: https://smartslider3.com/free-wordpress-slider/

To display a slider using this plugin, you would use a shortcode smartslider3 with a numeric ID attribute to specify which slider, in this case, the slider with the ID 9:

[smartslider3 slider=9]

That shortcode would display slider #9. I could insert that code in the template directly if I wanted to display slider #9 on every post. However, the user wants the ability to display a different slider on each post, so there is a custom field set up to store the customized shortcode. A WYSIWYG field works best to store and display a 3rd-party shortcode. That custom field, a WYSIWYG field created by Types, has the slug "smart-slider-3". This slug is not defined by Toolset, it is defined by the User. To display the contents of that WYSIWYG field, you would use the Types field shortcode:

[types field="smart-slider-3"][/types]

So the other User placed this shortcode in their template to display the correct slider on every post.

The topic ‘[Closed] Render a Gravity Forms shortcode inside a custom field’ is closed to new replies.