WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

hi i'm trying to insert a short code into a Text widget but all its doing it showing the code and not processing it.

<?php echo do_shortcode(' [stream embed=false share=false width=500 height=560 dock=true controlbar=bottom bandwidth=high autostart=false playlistfile=http://www.xxx.com/wp-content/uploads/videos/playlist.xml config=http://www.xxx.com/wp-content/uploads/videos/config_for_playlist.xml playlist=bottom repeat=none /] '); ?>
share|improve this question
up vote 2 down vote accepted

the text widget doesn't do php....

Here's my fave solution


It's from Otto, so ya know it's good. Based heavily on the text widget, but allows for php

share|improve this answer

if [stream /] is 'real' shortcode (not everything in square bracket is shortcode) then try to add this to functions.php of your theme:

add_filter('widget_text', 'do_shortcode');

related: Stream Video Player does not work with do_shortcode()? ?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.