I snagged the Hollo Dolly plugin and modified it very slightly to make a random tagline function to use on my blog — worked great — and I’m just wondering if it’s possible for me to use that new function on files outside my WordPress directory to show the rotating taglines out there too… I tried calling the function with simple php require, like:
<?php require("../blog/wp-content/plugins/randomtagline.php"); ?>
…but outside the WordPress directory, the wptexturize function contained within Hello Dolly (and thus my adapted function) throws a call-to-undefined error. That makes perfect sense to me, but I have no idea if a workaround for this is even possible, let alone how I’d begin to do it. Any sugestions?
- The topic ‘use a plugin function outside WordPress’ is closed to new replies.