Ok, so the code was jacked. It was missing a quotation mark.
Now my problem is that it returns the errors:
Warning: reset(): Passed variable is not an array or object in /home/content/n/t/h/nthnlsmmrs/html/ce/wp-content/themes/snoods-10/ewurls.php on line 5
Warning: Variable passed to each() is not an array or object in /home/content/n/t/h/nthnlsmmrs/html/ce/wp-content/themes/snoods-10/ewurls.php on line 6
The new code is:
<?php
global $wpdb;
$allusers = $wpdb->get_col("SELECT ID FROM $wpdb->users ORDER BY ID",0);
reset($allsuers);
while (list($key, $val) = each($allsuers)) {
$url = get_cimyFieldValue($val, EWURL);
echo "<a href='$url'>Display Name</a><br />";
}
?>
I guess the problem now is that it's not really returning an array of all the users. Why not?