Sometimes we use shortcode not only on the content of the article but also on some custom field, widgets, and more. By default, we’re not allowed to use it inside a sidebar or widget.
In this case, we need to add filter to make this happen. Simply add this to wordpress template’s function.php
It’s easy, fast and effective.
Now, you can do something like this: