Tell us what you are trying to do? Within a view loop I need to call a custom short code with a custom field of the currently selected item
Is there any documentation that you are following? I checked all the docs and related issues on the toolset site
Is there a similar example that we can see? The output of the first line works as expected, the second one (call to the custom short-code) doesn't work (the short code receives well the 1st param but not the second one) :
Hi Nigel, thanks for your suggestion. However even by doing as suggested, the field is not "expanded" in the short code call: here is a log I take at the entry of the short code:
In snc_set_global_shortcode name=current_property_address content=###SPACE###[types field="address"][/types]
as pasted above, I'm using a Toolset shortcode ([types field ...) as parameter of a custom (mine) short code (snc_set_global_shortcode). If that is no longer possible could you please suggest me a solution to pass a custome field in a view loop to a custom function ? I need to save the content of the field in a global variable. Thanks for your help.
I found the issue to be simply that the shortcode isn't being processed as it normally would if you were to render your custom function onto the page, so no internal processing is being on on the nested shortcode.
Using the do_shortcode() function on the $content variable should resolve the issue. So your code should be.
Brilliant, thank you so much Shane. I spent 4 days searching on the Toolset documentation and forums to search for a solution with no success. Your proposal works great ! My issue is resolved now. Thank you!