From 9107fce738865f27908f2c4ae9f8f913b3a32c0e Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Tue, 9 Dec 2008 21:21:31 -0500 Subject: Tweaked tag cloud Previously, the tag cloud excluded tags which weren't used for "published" posts, but when counting the ones that were, it also counted any instances of the tag in other types of posts. This has now been fixed. --- includes/footer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/footer.php b/includes/footer.php index 4fe5ec5..be8dd1b 100755 --- a/includes/footer.php +++ b/includes/footer.php @@ -211,7 +211,7 @@ if (!isset($noRightbar)) $i=0; while ($gettags3[$i] = mysql_fetch_array($gettags2)) { - $cnttag = "SELECT COUNT(*) FROM tags WHERE tag = \"" . $gettags3[$i]['tag'] . "\""; + $cnttag = "SELECT COUNT(*) FROM tags WHERE tag = \"" . $gettags3[$i]['tag'] . "\" AND post_type = \"published\""; $cnttag2 = mysql_query($cnttag); $cnttag3 = mysql_fetch_array($cnttag2); -- cgit 1.4.1