Skip Navigation

[Resolved] Shortcode within another shortcode

This support ticket is created 4 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by chrisC-25 4 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#1491395

I am trying to add a toolset field shortcode within another shortcode from another plugin. The code looks like this :
[wps_products product_id="4423215906909, 4296809152605, [types field='featured-product-1'][/types]" show_featured_only="true" excludes="description, buy-button" hide_quantity="true" page_size="3"]

The toolset field is a text field that should fill in the item number to pull from the other app.

The test page is here:
hidden link

It should only be pulling 3 items, but it is pulling everything.
Thanks

#1491531

Hello,

The "Shortcode within shortcode" is a built-in feature of Toolset plugins, but the shortcode [wps_products] you mentioned above is from other plugin, it might not support this feature.

I suggest you try these:
1) Dashboard-> Toolset-> Settings-> Front-end Content
In section "Third-party shortcode arguments", add your custom shortcode name: wps_products,
and test again.

2) If above does not work, you might consider to create new shortcodes, or check it with the APP author of shortcode [wps_products] .

More help:
https://toolset.com/documentation/user-guides/views/shortcodes-within-shortcodes/

#1501911

My issue is resolved now. Thank you!

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