Force update to tag count?
-
Is it possible to force an update to the tag count?
I have a custom piece of code that strips common tags errors from a WP installation using the code
$mylink = $wpdb->get_row("UPDATE wp_term_taxonomy SET count=0 WHERE term_id = ".$termid); $mylink = $wpdb->get_row("DELETE FROM wp_term_relationships WHERE term_taxonomy_id = ".$termid);
Is there a shortcut to force WordPress to update the count column in wp_term_taxonomy?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Force update to tag count?’ is closed to new replies.