I have created two shortcodes in my plugin. If i use them on a page, either use one or both together, they are shown as expected.

If i add either of them to a widget text, I get the output of both shortcodes in the widget.

It does not matter which shortcode I use, both will be shown in text widget.

How can i solve this problem?

Read more here: Problem using shortcode in widget


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: