It won’t work if it’s called directly from within an elementor widget unless the widget is the shortcode widget. The only other way around it, that I’m currently aware of, is with some custom programming. I’d recommend finding a developer to assist if you’re not familiar with PHP.
To help clarify… any elementor widget to process and display data is responsible for the process, unlike an actual template file that can process the “cleaner” data without elementor. I’ve ran across this earlier this year, so I can confirm it can be done.
Copyright © 2010-2020 PremiumPress Limited.