2009-11-20, 22:03:01
Looking good, I was actualliy thinking of writing a tagcloud function myself but it seems you beat me to it!
I have a few things I want to say though:
Slashes the wrong way, wouldn't this give problems if I were to copy your script into my functions.php?
You define a variable that you're not going to be using anywhere?
You seem to be using subval_sort() but I thought we established the fact that it doesn't work on an array of SimpleXMLElement objects (as are returned by your XPath call)?
I have a few things I want to say though:
Code:
\\ example $jsLink=" onclick=\"searchTag('".$tag."');\" ";
Code:
$query=$myPages->item;
Code:
$components = subval_sort($myPages->xpath("//*"),'slug');
“Don’t forget the important ˚ (not °) on the a,†says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!