update url for the category
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 21 May 2015 20:58:11 +0000 (16:58 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 21 May 2015 20:58:11 +0000 (16:58 -0400)
single.php

index 0b27efa..288950b 100644 (file)
@@ -23,7 +23,7 @@
                                             foreach($post_categories as $c){
                                                 $cat = get_category( $c );
                                                 $cats[] = array( 'name' => $cat->name, 'slug' => $cat->slug );
-                                                echo '<a rel="category" title="View all posts in '. $cat->name . ' " href="'. $cat->slug .'">'. $cat->name .'</a>, ';
+                                                echo '<a rel="category" title="View all posts in '. $cat->name . ' " href="'. get_bloginfo('url'). $cat->slug .'">'. $cat->name .'</a>, ';
                                             }
                                         }
                                         $post_tags = wp_get_post_tags( get_the_ID() );