hmmmm.. I got it to work.
I saw this other thread:
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=446023&page=2It mentions that the guy just changed the name of a function, and it started working for him. I went ahead and tried it on mine, and it works now.
I'm happy, but confused. Why would it work through WED, and not when published? Seems like a possible bug.