My code doesn’t work with 2.3
-
Hi all,
I am using the code below to display my categories but with 2.3 it appears not to work.
Has table names been changed in 2.3 and if so why?
Can anyone possibly help with this?
<?php /* Comma-delimited category list */ global $wpdb; $thecats = $wpdb->get_results("SELECT * FROM $wpdb->categories WHERE category_count > 0 ORDER BY cat_name ASC"); $eor = count($thecats) - 1; foreach($thecats as $thecat) : ?> <a>cat_ID); ?>" title="<?php echo wp_specialchars($thecat->category_description); ?>"><?php echo $thecat->cat_name; ?></a><?php if($thecats[$eor] != $thecat) echo ', '; ?> <?php endforeach; ?>
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘My code doesn’t work with 2.3’ is closed to new replies.