Skip to main content
7 events
when toggle format what by license comment
Apr 11, 2012 at 20:14 comment added Adam That's what I was about to say next after looking at your script, was a little backwards ;) Have fun!
Apr 11, 2012 at 20:12 comment added kingkool68 Oops! Globalizing $score does indeed work. I goofed and set $score first then globalized which clearly doesn't work. Doing it the proper way by globalizing $score first then giving it a value works as expected. Thanks all.
Apr 11, 2012 at 20:04 comment added Adam Are you able to print or echo your result to ensure that your function is indeed working prior to passing it to the filter?
Apr 11, 2012 at 20:02 comment added kingkool68 It also doesn't work. This is the first thing I tried.
Apr 11, 2012 at 20:02 comment added Adam Once less declaration of "global". Look at his second example, he declares gloabl $wp twice!
Apr 11, 2012 at 20:00 comment added onetrickpony How is this any different from what he already has?
Apr 11, 2012 at 19:57 history answered Adam CC BY-SA 3.0