Forums

Excute php code from widget (4 posts)

  1. hiko
    Member
    Posted 2 months ago #

    Hi,

    I am new in word press.

    I have created widget from admin side and i want to execute following php
    code from widget

    <?php
    echo"hello";
    ?>
  2. hiko
    Member
    Posted 2 months ago #

    Hi,

    I have downloaded php code plugin

    when i create new widget and use code

    <?
    echo"hello";
    ?>

    it is giving following message

    echo "hello";
    ?>
  3. MichaelH
    moderator
    Posted 2 months ago #

    Consider downloading and installing Otto's PHP Code Widget.

  4. Otto42
    Moderator
    Posted 1 month ago #

    It has to start with <?php, not <?. Short forms are not supported.

Reply

You must log in to post.

About this Topic