ExecPHP

By Andy

Otto's second widgetized plugin gives you an additional set of widgets just like Text widgets except that the contents will be evaluated as PHP. Now there is really nothing you can't do with a few of these. Be careful! ;-)

6 Responses to “ExecPHP”

  1. Otto Says:

    For those interested, it will do non-PHP code too, so you can combine HTML, text, PHP, etc. It’s versatile that way. :)

    Still, I’d only recommend using this widget for helping you do quick conversions from your existing sidebar code. If a widget to do something you’re missing becomes available, then use that one instead.

  2. Roger Says:

    Works fine with Firefox, but with Explorer, it makes a big mess! gee! It was so beautiful in Firefox!

    I hate Explorer!

    Roger

    Is it only me that have this problem?/

  3. Our Story » On the Radar Says:

    [...] Widgets, widgets, widgets, widgets, widgets—the WordPress world is in love with them, and for good reason. Widgets make customizing WordPress even more accessible for mere mortals. A nice side benefit: they also make upgrading your theme much more painless. With the ExecPHP and default text widgets, you can make sidebar mods (such as advertising, etc.) without worrying about them getting overwritten after a theme upgrade. Great work. [...]

  4. pldoolittle Says:

    FWIW, I used execPHP and inserted the code below (taken/modified from rust_asides.php plug in) and created a widget that will display the contents of a custom text field(s) within a post.

    FWIW, we use the blog to publish pet related news articles on a retail pet products website. My goal is to create a series of 3 small product advertisments highly relevant to the content that will display in the sidebar ONLY on post pages.

    Any suggestions? This (and a small hack to sidebar.php) is working, but I am stuck with the whole sidebar on every post :(

    Philip

    Code borrowed from rust_asides.php:

    0)
    {
    echo “$sTitle”;
    for($i=0;$i\n”;
    }

    ?>

  5. pldoolittle Says:

    Let me try that code again

    0)
    {
    echo "$sTitle";
    for($i=0;$i\n";
    }

    ?>

  6. Mike Wanner Says:

    How can I add a second widget to the right of the page? I have this long list of items from cal, text, images, etc. but I can’t seem to get anything on the righ column. This is a three column site. Thank you.

Comments are closed.