- This topic has 2 replies, 2 voices, and was last updated 6 years, 11 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › Nested shortcodes not working
I’m using WP eStore with the Toolset Types plugin (paid version).
Currently I use some shortcodes to pull data from the WP eStore settings into my custom post type created in Toolset.
That works if I call it like this:
[wp_eStore_product_details id=7 info=”price”]
As you can see I am passing the ID ( #7 in this case) and the correct price is pulled from the WP eStore at runtime.
However in order to not have to keep updating the ID through all the fields as I create a new entry in the custom post type, I have added a field called “WP-eStore-ID” to the fields for the custom post type.
I’d like to be able to call it like this:
[wp_eStore_product_details id= [types field=’wp-estore-id’ output=’raw’][/types]info=”price”]
and the shortcode from Toolset does work:
[types field=’wp-estore-id’ output=’raw’][/types]
However when it is nested as shown above I get a runtime error from WP eStore like this:
You did not specify which information of the product you want to show (the “info” parameter is empty). Please check the shortcode documentation to learn the usage of this shortcode.
[/types] info=”price”]
What can I do to get the embedded shortcode from Toolset to work within the WP eStore one?
Thanks!
Charles
Thanks for the link.
I’d found that one and tried it before posting here, but it made no difference.
FWIW if I only put the Toolset shortcode there it does return the correct value.