<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><?php wp_title(); ?></title>
- <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/app.css?v=1.2.27">
+ <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/app.css?v=1.2.28">
<link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri() ; ?>/assets/favicon.ico?v=1">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700' rel='stylesheet' type='text/css'>
<?php wp_head(); ?>
</header>
<?php echo the_advanced_excerpt('length=250&length_type=characters&no_custom=1&ellipsis=%26hellip;&exclude_tags=a,img,p,div,h1,h2,h3,h4,h5,h6'); ?>
<footer class="entry-meta small-12 medium-6 medium-push-3 center">
- <?php $post_categories = wp_get_post_categories( get_the_ID() );
+ <?php
+ $post_categories = wp_get_post_categories( get_the_ID() );
$cats = array();
- if (has_category() && !( count( $cats ) == 1 && $cats[0]->slug == 'uncategorized' ) ) {
+ if ( has_category ) {
echo 'This entry was posted in';
foreach($post_categories as $c){
$cat = get_category( $c );
- if ( $cat->slug !== 'uncategorized' ) {
$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>';
- }
+ if ( $c !== reset( $post_categories ) ) {
+ echo ",";
+ }
+ echo ' <a rel="category" title="View all posts in '. $cat->name . ' " href="'. get_category_link( $cat->term_id ) .'">'. $cat->name .'</a>';
}
echo '.';
}