From: Laury GvR Date: Wed, 18 Apr 2018 17:12:21 +0000 (-0400) Subject: Fixed Blog footer links to Uncategorized X-Git-Tag: v2.5.9^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=39f4dec907ba21f012ce1b5792b19ce8f7eb7079;p=WP-Themes%2FVisitAlpena.git Fixed Blog footer links to Uncategorized Links to Uncategorized would break because of improper retrieval of the category's slug. This has been fixed. So too has the awkward comma in "This has been posted in, Uncategorized." Fix applied to archive.php, single.php and home.php --- diff --git a/archive.php b/archive.php index fe9e13d..863c3a0 100644 --- a/archive.php +++ b/archive.php @@ -52,7 +52,7 @@ $cat = get_category( $c ); $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug ); - echo ''. $cat->name .', '; + echo ''. $cat->name .', '; } } $post_tags = wp_get_post_tags( get_the_ID() ); @@ -62,7 +62,7 @@ foreach($post_tags as $t){ $tag = get_tag( $t ); $tags[] = array( 'name' => $tag->name, 'slug' => $tag->slug ); - echo ''. $tag->name .', '; + echo ''. $tag->name .', '; } } diff --git a/home.php b/home.php index c3e4f88..aeb807b 100644 --- a/home.php +++ b/home.php @@ -51,7 +51,7 @@ $cat = get_category( $c ); $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug ); - echo ''. $cat->name .', '; + echo ''. $cat->name .', '; } } $post_tags = wp_get_post_tags( get_the_ID() ); @@ -61,7 +61,7 @@ foreach($post_tags as $t){ $tag = get_tag( $t ); $tags[] = array( 'name' => $tag->name, 'slug' => $tag->slug ); - echo ''. $tag->name .', '; + echo ''. $tag->name .', '; } } diff --git a/single.php b/single.php index 6ced5a4..32b39fa 100644 --- a/single.php +++ b/single.php @@ -49,7 +49,7 @@ $cat = get_category( $c ); $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug ); - echo ''. $cat->name .', '; + echo ''. $cat->name .', '; } } $post_tags = wp_get_post_tags( get_the_ID() ); @@ -59,7 +59,7 @@ foreach($post_tags as $t){ $tag = get_tag( $t ); $tags[] = array( 'name' => $tag->name, 'slug' => $tag->slug ); - echo ''. $tag->name .', '; + echo ''. $tag->name .', '; } }