I have generated custom widget textarea.

Normal text work but when I insert shortcode (like:[contact-form-7 id="538" title="widget_subscription"]) in textarea then shortcodes does not work.

I use following short code in function.php file.

add_filter('widget_text','do_shortcode' );

Quick response will be appreciated smile

I have generated custom widget textarea. Normal text work but when I insert shortcode (like:[contact-form-7 id="538" title="widget_subscription"]) in textarea then shortcodes does not work. I use following short code in function.php file. add_filter('widget_text','do_shortcode' ); Quick response will be appreciated :)

Hi Dear!

I believe you should insert this code:

/ WP function to add_shortcode support like given below:/

add_shortcode('your-shortcode', 'do_shortcode' );

/ Your callable code will be/
function do_shortcode(...) { ... }

Let me know if you face any issue

Davi

Hi Dear! I believe you should insert this code: /* WP function to add_shortcode support like given below:*/ add_shortcode('your-shortcode', 'do_shortcode' ); /* Your callable code will be*/ function do_shortcode(...) { ... } Let me know if you face any issue **Davi**

Co Founder of Daungy - I am a software developer, quick learner and entrepreneur. I believe anything is possible with dedication. I am working hard for my aim of #NoMoreChildLabor

26
views
1
replies
2
followers
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft