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!
ExecPHP
By Andy6 Responses to “ExecPHP”
Comments are closed.
April 10, 2006 at 8:31 pm
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.
April 16, 2006 at 12:26 am
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?/
April 29, 2006 at 2:47 am
[...] 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. [...]
November 30, 2006 at 4:52 am
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”;
}
?>
November 30, 2006 at 4:55 am
Let me try that code again
0)
{
echo "$sTitle";
for($i=0;$i\n";
}
?>
December 14, 2006 at 3:54 am
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.