WordPress.org

Ready to get started?Download WordPress

Forums

PHP CODE HELP (3 posts)

  1. magicfm
    Member
    Posted 7 years ago #

    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 !

  2. whooami
    Member
    Posted 7 years ago #

    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 ..

  3. moshu
    Member
    Posted 7 years ago #

    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/ )

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags