Skip Navigation

[Resolved] Insert into wpv-control custom shortcode value

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

Problem: I would like to use a custom shortcode inside the attributes of a wpv-control shortcode.

Solution: Register the shortcode name in Toolset > Settings > Front-end Content > 3rd party shortcode arguments, then you can use your custom shortcode in the other shortcode arguments.

Relevant Documentation:
https://toolset.com/course-lesson/using-toolset-conditional-block/#custom-shortcodes

This support ticket is created 3 years, 8 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 davideE-4 3 years, 8 months ago.

Assisted by: Shane.

Author
Posts
#2028445

Hi,
i tried insert into wpv-control my custom shortcode for load valued but not work.

The shortcode is "filtro_anni_pareri_cd" and the control is
[wpv-control url_param="wpv-year" type="select" values=",[filtro_anni_pareri_cd]" display_values="All,[filtro_anni_pareri_cd]"]
Regards

#2028721

Hello, if you want to use a 3rd-party shortcode in the attributes of another shortcode, you must first register that shortcode in Toolset > Settings > Front-end Content. After you register filtro_anni_pareri_cd in the 3rd party shortcode arguments section, you should be able to use that shortcode inside Toolset shortcode arguments successfully.

If that still isn't working as expected, try these troubleshooting steps:
- Use the full shortcode syntax with opening and closing tags:

[wpv-control url_param="wpv-year" type="select" values=",[filtro_anni_pareri_cd][/filtro_anni_pareri_cd]" display_values="All,[filtro_anni_pareri_cd][/filtro_anni_pareri_cd]"]

- Place the shortcode outside the wpv-control shortcode and verify that the output is accurate:

Test Shortcode: [filtro_anni_pareri_cd][/filtro_anni_pareri_cd]<br />
[wpv-control url_param="wpv-year" type="select" values=",[filtro_anni_pareri_cd][/filtro_anni_pareri_cd]" display_values="All,[filtro_anni_pareri_cd][/filtro_anni_pareri_cd]"]

- Now on the front-end of the site, you should see the shortcode output some value after Test Shortcode. Is the value accurate here?

#2028731

My issue is resolved now. Thank you!