• I’ve been using Text Link Ads on my site. When I transitioned it to WordPress, I tried to install the Text Link Ads Plugin Widget, but it does not function, and their “technical contact” isn’t any help.

    But…

    I do have the PHP code from my previous non-WordPress design that works just fine.

    Is there a way to add a block of executable PHP code and manage its placement via the Sidebar Widget Manager?

Viewing 1 replies (of 1 total)
  • https://ottodestruct.com/blog/2006/04/09/fun-with-widgets/

    The next one is also like the Text plugin, however it will also let you put PHP code into the text and have it actually work. Here’s the download: execphp.zip. Like the Text plugin, you can have up to 9 of them (more if you want to tweak the code). Note that any PHP code you put into the widget MUST be surrounded by <?php and ?> tags, just like writing PHP normally. Also note that this is isn’t exactly safe, as it’s just doing an eval() on whatever you put in there, so you have complete and full access, as does anybody else who can get to your admin screen. Still, it’s very useful.

Viewing 1 replies (of 1 total)
  • The topic ‘Executing PHP in Sidebar’ is closed to new replies.