about using php in wordpress widget ....

Discussion in 'Content Management' started by someone100, Dec 2, 2009.

  1. #1
    i am using
    1)
     <?php the_excerpt(); ?> 
    PHP:
    in my Main Index Template (index.php) file of my template.

    2) "PHP Execution" plugin


    the result of this i see my php inside the post working in my Main Index Template (index.php) page but not in the widget of the same page .


    what is the most easiest way that i can print php inside my widget ? without using addional plugin so the data will be printed in the same widget which display others posts without php .



    thanks !


    to see the problem please check this page :
    http://nowork.diet4u.co.il/?cat=185

    the game is called :"check this game" in the main page and in the left.
     
    Last edited: Dec 2, 2009
    someone100, Dec 2, 2009 IP
  2. someone100

    someone100 Peon

    Messages:
    171
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    can someone help ???
    :(:confused::)
     
    someone100, Dec 3, 2009 IP
  3. s_ruben

    s_ruben Active Member

    Messages:
    735
    Likes Received:
    26
    Best Answers:
    1
    Trophy Points:
    78
    #3
    "The PHP Execution Plugin is a Wordpress plugin which allows users to write php code inside of their posts and pages." <- It is from plugin description, so it doesn't work with widget texts!!!

    You have to install a new plugin or write your code for widget text php execution.
     
    s_ruben, Dec 3, 2009 IP
  4. someone100

    someone100 Peon

    Messages:
    171
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks ! i think i will not use php:)
     
    someone100, Dec 3, 2009 IP