Can someone help me please, im trying to run a php code inside a text widget. like this,
<?php include('http://mysite.com/todayweathersidebar.txt'); ?>
any kind of help all be awesome !
Can someone help me please, im trying to run a php code inside a text widget. like this,
<?php include('http://mysite.com/todayweathersidebar.txt'); ?>
any kind of help all be awesome !
you know you don't need to do that in a widget?
You can just do that as a normal include inside your sidebar.php ..
PHP code will not run in a text widget.
You need a php widget:
http://ottodestruct.com/wpstuff/execphp.zip
(about use see: http://ottodestruct.com/blog/2006/04/09/fun-with-widgets/ )
This topic has been closed to new replies.